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)
            reboot = bool(ret_val & 1)
            if ret_val & 2:
                plugin_status = base.PLUGIN_EXECUTE_ON_NEXT_BOOT
 
        return (plugin_status, reboot)

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/setuserpassword.py   cloudbase-init(Download)
                    self._set_metadata_password(password, service)
 
        return (base.PLUGIN_EXECUTE_ON_NEXT_BOOT, False)
 

src/c/l/cloudbase-init-HEAD/cloudbaseinit/plugins/windows/ntpclient.py   cloudbase-init(Download)
            if not ntp_option_data:
                LOG.debug("Could not obtain the NTP configuration via DHCP")
                return (base.PLUGIN_EXECUTE_ON_NEXT_BOOT, False)
 
            # TODO(alexpilotti): support multiple NTP servers

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/extendvolumes.py   cloudbase-init(Download)
                self._extend_volumes(pack, volumes_to_extend)
 
        return (base.PLUGIN_EXECUTE_ON_NEXT_BOOT, False)
 
    def get_os_requirements(self):

src/c/l/cloudbase-init-HEAD/cloudbaseinit/tests/test_init.py   cloudbase-init(Download)
                                                       'fake id',
                                                       fake_name)
        if status is base.PLUGIN_EXECUTE_ON_NEXT_BOOT:
            self.plugin.execute.assert_called_once_with('fake service',
                                                        'shared data')
    def test_test_exec_plugin(self):
        self._test_exec_plugin(base.PLUGIN_EXECUTE_ON_NEXT_BOOT)
 
    def _test_check_plugin_os_requirements(self, requirements):
        sys.platform = 'win32'