Did I find the right examples for you? yes no

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

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/userdata.py   cloudbase-init(Download)
    def execute(self, service, shared_data):
        try:
            user_data = service.get_user_data()
        except metadata_services_base.NotExistingMetadataException:
            return (base.PLUGIN_EXECUTION_DONE, False)
 
        if not user_data:
            return (base.PLUGIN_EXECUTION_DONE, False)
    def _process_user_data(self, user_data):
        plugin_status = base.PLUGIN_EXECUTION_DONE
        reboot = False
 
        LOG.debug('User data content:\n%s' % user_data)
    def _get_plugin_return_value(self, ret_val):
        plugin_status = base.PLUGIN_EXECUTION_DONE
        reboot = False
 
        if ret_val >= 1001 and ret_val <= 1003:

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/networkconfig.py   cloudbase-init(Download)
    def execute(self, service, shared_data):
        network_config = service.get_network_config()
        if not network_config:
            return (base.PLUGIN_EXECUTION_DONE, False)
 
        if 'content_path' not in network_config:
            return (base.PLUGIN_EXECUTION_DONE, False)
            gateway, dnsnameservers)
 
        return (base.PLUGIN_EXECUTION_DONE, reboot_required)
 

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/setuserpassword.py   cloudbase-init(Download)
                    LOG.info('Cannot set the password in the metadata as it '
                             'is not supported by this service')
                    return (base.PLUGIN_EXECUTION_DONE, False)
                else:
                    self._set_metadata_password(password, service)

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/ntpclient.py   cloudbase-init(Download)
            LOG.info('NTP client configured. Server: %s' % ntp_host)
 
        return (base.PLUGIN_EXECUTION_DONE, False)
 

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/sshpublickeys.py   cloudbase-init(Download)
    def execute(self, service, shared_data):
        public_keys = service.get_public_keys()
        if not public_keys:
            LOG.debug('Public keys not found in metadata')
            return (base.PLUGIN_EXECUTION_DONE, False)
                f.write(public_key)
 
        return (base.PLUGIN_EXECUTION_DONE, False)
 

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/sethostname.py   cloudbase-init(Download)
        if not metadata_host_name:
            LOG.debug('Hostname not found in metadata')
            return (base.PLUGIN_EXECUTION_DONE, False)
 
        metadata_host_name = metadata_host_name.split('.', 1)[0]
            reboot_required = True
 
        return (base.PLUGIN_EXECUTION_DONE, reboot_required)
 

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/winrmlistener.py   cloudbase-init(Download)
                                     osutils.PROTOCOL_TCP)
 
        return (base.PLUGIN_EXECUTION_DONE, False)
 

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/winrmcertificateauth.py   cloudbase-init(Download)
            LOG.info("WinRM certificate authentication cannot be configured "
                     "as a certificate has not been provided in the metadata")
            return (base.PLUGIN_EXECUTION_DONE, False)
 
        winrm_config = winrmconfig.WinRMConfig()
                                             user_name, password)
 
        return (base.PLUGIN_EXECUTION_DONE, False)
 

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/licensing.py   cloudbase-init(Download)
            LOG.debug("Activation result:\n%s" % activation_result)
 
        return (base.PLUGIN_EXECUTION_DONE, False)
 

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/createuser.py   cloudbase-init(Download)
                LOG.error('Cannot add user to group "%s"' % group_name)
 
        return (base.PLUGIN_EXECUTION_DONE, False)
 

  1 | 2  Next