How to use the watchmaker.utils.config_none_deprecate function in watchmaker

To help you get started, we’ve selected a few watchmaker examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github plus3it / watchmaker / src / watchmaker / workers / salt.py View on Github external
self.salt_states = kwargs.pop('salt_states', None) or ''
        self.exclude_states = kwargs.pop('exclude_states', None) or ''

        self.computer_name = watchmaker.utils.config_none_deprecate(
            self.computer_name, self.log)
        self.salt_debug_log = watchmaker.utils.config_none_deprecate(
            self.salt_debug_log, self.log)
        self.salt_content = watchmaker.utils.config_none_deprecate(
            self.salt_content, self.log)
        self.salt_content_path = watchmaker.utils.config_none_deprecate(
            self.salt_content_path, self.log)
        self.ou_path = watchmaker.utils.config_none_deprecate(
            self.ou_path, self.log)
        self.admin_groups = watchmaker.utils.config_none_deprecate(
            self.admin_groups, self.log)
        self.admin_users = watchmaker.utils.config_none_deprecate(
            self.admin_users, self.log)
        self.salt_states = watchmaker.utils.config_none_deprecate(
            self.salt_states, self.log)

        # Init attributes used by SaltBase, overridden by inheriting classes
        self.salt_working_dir = None
        self.salt_working_dir_prefix = None
        self.salt_log_dir = None
        self.salt_conf_path = None
        self.salt_conf = None
        self.salt_call = None
        self.salt_base_env = None
        self.salt_formula_root = None
        self.salt_file_roots = None
        self.salt_state_args = None
        self.salt_debug_logfile = None
github plus3it / watchmaker / src / watchmaker / workers / salt.py View on Github external
self.user_formulas = kwargs.pop('user_formulas', None) or {}
        self.computer_name = kwargs.pop('computer_name', None) or ''
        self.ent_env = kwargs.pop('environment', None) or ''
        self.valid_envs = kwargs.pop('valid_environments', []) or []
        self.salt_debug_log = kwargs.pop('salt_debug_log', None) or ''
        self.salt_content = kwargs.pop('salt_content', None) or ''
        self.salt_content_path = kwargs.pop('salt_content_path', None) or ''
        self.ou_path = kwargs.pop('ou_path', None) or ''
        self.admin_groups = kwargs.pop('admin_groups', None) or ''
        self.admin_users = kwargs.pop('admin_users', None) or ''
        self.salt_states = kwargs.pop('salt_states', None) or ''
        self.exclude_states = kwargs.pop('exclude_states', None) or ''

        self.computer_name = watchmaker.utils.config_none_deprecate(
            self.computer_name, self.log)
        self.salt_debug_log = watchmaker.utils.config_none_deprecate(
            self.salt_debug_log, self.log)
        self.salt_content = watchmaker.utils.config_none_deprecate(
            self.salt_content, self.log)
        self.salt_content_path = watchmaker.utils.config_none_deprecate(
            self.salt_content_path, self.log)
        self.ou_path = watchmaker.utils.config_none_deprecate(
            self.ou_path, self.log)
        self.admin_groups = watchmaker.utils.config_none_deprecate(
            self.admin_groups, self.log)
        self.admin_users = watchmaker.utils.config_none_deprecate(
            self.admin_users, self.log)
        self.salt_states = watchmaker.utils.config_none_deprecate(
            self.salt_states, self.log)

        # Init attributes used by SaltBase, overridden by inheriting classes
        self.salt_working_dir = None
github plus3it / watchmaker / src / watchmaker / workers / salt.py View on Github external
self.ent_env = kwargs.pop('environment', None) or ''
        self.valid_envs = kwargs.pop('valid_environments', []) or []
        self.salt_debug_log = kwargs.pop('salt_debug_log', None) or ''
        self.salt_content = kwargs.pop('salt_content', None) or ''
        self.salt_content_path = kwargs.pop('salt_content_path', None) or ''
        self.ou_path = kwargs.pop('ou_path', None) or ''
        self.admin_groups = kwargs.pop('admin_groups', None) or ''
        self.admin_users = kwargs.pop('admin_users', None) or ''
        self.salt_states = kwargs.pop('salt_states', None) or ''
        self.exclude_states = kwargs.pop('exclude_states', None) or ''

        self.computer_name = watchmaker.utils.config_none_deprecate(
            self.computer_name, self.log)
        self.salt_debug_log = watchmaker.utils.config_none_deprecate(
            self.salt_debug_log, self.log)
        self.salt_content = watchmaker.utils.config_none_deprecate(
            self.salt_content, self.log)
        self.salt_content_path = watchmaker.utils.config_none_deprecate(
            self.salt_content_path, self.log)
        self.ou_path = watchmaker.utils.config_none_deprecate(
            self.ou_path, self.log)
        self.admin_groups = watchmaker.utils.config_none_deprecate(
            self.admin_groups, self.log)
        self.admin_users = watchmaker.utils.config_none_deprecate(
            self.admin_users, self.log)
        self.salt_states = watchmaker.utils.config_none_deprecate(
            self.salt_states, self.log)

        # Init attributes used by SaltBase, overridden by inheriting classes
        self.salt_working_dir = None
        self.salt_working_dir_prefix = None
        self.salt_log_dir = None
github plus3it / watchmaker / src / watchmaker / workers / salt.py View on Github external
self.salt_content_path = kwargs.pop('salt_content_path', None) or ''
        self.ou_path = kwargs.pop('ou_path', None) or ''
        self.admin_groups = kwargs.pop('admin_groups', None) or ''
        self.admin_users = kwargs.pop('admin_users', None) or ''
        self.salt_states = kwargs.pop('salt_states', None) or ''
        self.exclude_states = kwargs.pop('exclude_states', None) or ''

        self.computer_name = watchmaker.utils.config_none_deprecate(
            self.computer_name, self.log)
        self.salt_debug_log = watchmaker.utils.config_none_deprecate(
            self.salt_debug_log, self.log)
        self.salt_content = watchmaker.utils.config_none_deprecate(
            self.salt_content, self.log)
        self.salt_content_path = watchmaker.utils.config_none_deprecate(
            self.salt_content_path, self.log)
        self.ou_path = watchmaker.utils.config_none_deprecate(
            self.ou_path, self.log)
        self.admin_groups = watchmaker.utils.config_none_deprecate(
            self.admin_groups, self.log)
        self.admin_users = watchmaker.utils.config_none_deprecate(
            self.admin_users, self.log)
        self.salt_states = watchmaker.utils.config_none_deprecate(
            self.salt_states, self.log)

        # Init attributes used by SaltBase, overridden by inheriting classes
        self.salt_working_dir = None
        self.salt_working_dir_prefix = None
        self.salt_log_dir = None
        self.salt_conf_path = None
        self.salt_conf = None
        self.salt_call = None
        self.salt_base_env = None
github plus3it / watchmaker / src / watchmaker / workers / salt.py View on Github external
self.admin_groups = kwargs.pop('admin_groups', None) or ''
        self.admin_users = kwargs.pop('admin_users', None) or ''
        self.salt_states = kwargs.pop('salt_states', None) or ''
        self.exclude_states = kwargs.pop('exclude_states', None) or ''

        self.computer_name = watchmaker.utils.config_none_deprecate(
            self.computer_name, self.log)
        self.salt_debug_log = watchmaker.utils.config_none_deprecate(
            self.salt_debug_log, self.log)
        self.salt_content = watchmaker.utils.config_none_deprecate(
            self.salt_content, self.log)
        self.salt_content_path = watchmaker.utils.config_none_deprecate(
            self.salt_content_path, self.log)
        self.ou_path = watchmaker.utils.config_none_deprecate(
            self.ou_path, self.log)
        self.admin_groups = watchmaker.utils.config_none_deprecate(
            self.admin_groups, self.log)
        self.admin_users = watchmaker.utils.config_none_deprecate(
            self.admin_users, self.log)
        self.salt_states = watchmaker.utils.config_none_deprecate(
            self.salt_states, self.log)

        # Init attributes used by SaltBase, overridden by inheriting classes
        self.salt_working_dir = None
        self.salt_working_dir_prefix = None
        self.salt_log_dir = None
        self.salt_conf_path = None
        self.salt_conf = None
        self.salt_call = None
        self.salt_base_env = None
        self.salt_formula_root = None
        self.salt_file_roots = None
github plus3it / watchmaker / src / watchmaker / workers / salt.py View on Github external
self.salt_debug_log = kwargs.pop('salt_debug_log', None) or ''
        self.salt_content = kwargs.pop('salt_content', None) or ''
        self.salt_content_path = kwargs.pop('salt_content_path', None) or ''
        self.ou_path = kwargs.pop('ou_path', None) or ''
        self.admin_groups = kwargs.pop('admin_groups', None) or ''
        self.admin_users = kwargs.pop('admin_users', None) or ''
        self.salt_states = kwargs.pop('salt_states', None) or ''
        self.exclude_states = kwargs.pop('exclude_states', None) or ''

        self.computer_name = watchmaker.utils.config_none_deprecate(
            self.computer_name, self.log)
        self.salt_debug_log = watchmaker.utils.config_none_deprecate(
            self.salt_debug_log, self.log)
        self.salt_content = watchmaker.utils.config_none_deprecate(
            self.salt_content, self.log)
        self.salt_content_path = watchmaker.utils.config_none_deprecate(
            self.salt_content_path, self.log)
        self.ou_path = watchmaker.utils.config_none_deprecate(
            self.ou_path, self.log)
        self.admin_groups = watchmaker.utils.config_none_deprecate(
            self.admin_groups, self.log)
        self.admin_users = watchmaker.utils.config_none_deprecate(
            self.admin_users, self.log)
        self.salt_states = watchmaker.utils.config_none_deprecate(
            self.salt_states, self.log)

        # Init attributes used by SaltBase, overridden by inheriting classes
        self.salt_working_dir = None
        self.salt_working_dir_prefix = None
        self.salt_log_dir = None
        self.salt_conf_path = None
        self.salt_conf = None