def should_run(cls, environment, data): if FirstbootSpokeMixIn.should_run(environment, data): return True # the user spoke should run always in the anaconda and in firstboot only # when doing reconfig or if no user has been created in the installation if environment == FIRSTBOOT_ENVIRON and data and not data.user.userList: return True return False
def should_run(cls, environment, data): if FirstbootSpokeMixIn.should_run(environment, data): return True # the user spoke should run always in the anaconda and in firstboot only # when doing reconfig or if no user has been created in the installation users_module = USERS.get_proxy() user_list = get_user_list(users_module) if environment == FIRSTBOOT_ENVIRON and data and not user_list: return True return False
def should_run(cls, environment, data): """Should the spoke run?""" if not is_module_available(USERS): return False return FirstbootSpokeMixIn.should_run(environment, data)
def should_run(cls, environment, data): """Should the spoke run?""" if not FirstbootSpokeMixIn.should_run(environment, data): return False return conf.system.can_configure_network