Did I find the right examples for you? yes no

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

src/c/l/cloudbase-init-HEAD/cloudbaseinit/metadata/services/osconfigdrive/windows.py   cloudbase-init(Download)
    def _get_config_drive_cdrom_mount_point(self):
        osutils = osutils_factory.get_os_utils()
 
        for drive in osutils.get_cdrom_drives():
            label = osutils.get_volume_label(drive)
                                     str(uuid.uuid4()) + '.iso')
        try:
            osutils = osutils_factory.get_os_utils()
 
            if self._extract_iso_disk_file(osutils, iso_file_path):

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/userdataplugins/shellscript.py   cloudbase-init(Download)
    def process(self, part):
        osutils = osutils_factory.get_os_utils()
 
        file_name = part.get_filename()
        target_path = os.path.join(tempfile.gettempdir(), file_name)

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/winrmlistener.py   cloudbase-init(Download)
    def execute(self, service, shared_data):
        osutils = osutils_factory.get_os_utils()
 
        if not self._check_winrm_service(osutils):
            return (base.PLUGIN_EXECUTE_ON_NEXT_BOOT, False)

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/userdatautils.py   cloudbase-init(Download)
def execute_user_data_script(user_data):
    osutils = osutils_factory.get_os_utils()
 
    shell = False
    powershell = False

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/sshpublickeys.py   cloudbase-init(Download)
        username = CONF.username
 
        osutils = osutils_factory.get_os_utils()
        user_home = osutils.get_user_home(username)
 

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/setuserpassword.py   cloudbase-init(Download)
            LOG.debug('User\'s password already set in the instance metadata')
        else:
            osutils = osutils_factory.get_os_utils()
            if osutils.user_exists(user_name):
                password = self._set_password(service, osutils, user_name)

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/sethostname.py   cloudbase-init(Download)
    def execute(self, service, shared_data):
        osutils = osutils_factory.get_os_utils()
 
        metadata_host_name = service.get_host_name()
        if not metadata_host_name:

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/ntpclient.py   cloudbase-init(Download)
    def execute(self, service, shared_data):
        if CONF.ntp_use_dhcp_config:
            osutils = osutils_factory.get_os_utils()
            dhcp_hosts = osutils.get_dhcp_hosts_in_use()
 

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/networkconfig.py   cloudbase-init(Download)
        dnsnameservers = m.group('dnsnameservers').strip().split(' ')
 
        osutils = osutils_factory.get_os_utils()
 
        network_adapter_name = CONF.network_adapter

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/licensing.py   cloudbase-init(Download)
    def execute(self, service, shared_data):
        osutils = osutils_factory.get_os_utils()
 
        license_info = self._run_slmgr(osutils, ['/dlv'])
        LOG.info('Microsoft Windows license info:\n%s' % license_info)

  1 | 2  Next