Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/c/l/cloudbase-init-HEAD/cloudbaseinit/osutils/windows.py   cloudbase-init(Download)
            args.append('/ADD')
 
        (out, err, ret_val) = self.execute_process(args)
        if not ret_val:
            self._set_user_password_expiration(username, password_expires)
                '/syncfromflags:manual', '/update']
 
        (out, err, ret_val) = self.execute_process(args, False)
        if ret_val:
            raise Exception('w32tm failed to configure NTP.\n'
    def add_static_route(self, destination, mask, next_hop, interface_index,
                         metric):
        args = ['ROUTE', 'ADD', destination, 'MASK', mask, next_hop]
        (out, err, ret_val) = self.execute_process(args)
        # Cannot use the return value to determine the outcome
                '-NonInteractive', '-File', script_path]
 
        return self.execute_process(args, False)