当前位置: 首页>>代码示例>>Python>>正文


Python constants.RETRY_FILES_ENABLED属性代码示例

本文整理汇总了Python中ansible.constants.RETRY_FILES_ENABLED属性的典型用法代码示例。如果您正苦于以下问题:Python constants.RETRY_FILES_ENABLED属性的具体用法?Python constants.RETRY_FILES_ENABLED怎么用?Python constants.RETRY_FILES_ENABLED使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在ansible.constants的用法示例。


在下文中一共展示了constants.RETRY_FILES_ENABLED属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from ansible import constants [as 别名]
# 或者: from ansible.constants import RETRY_FILES_ENABLED [as 别名]
def __init__(self, playbook_path, inventory=None, options=None):
        """
        :param options: Ansible options like ansible.cfg
        :param inventory: Ansible inventory
        :param BaseInventory:The BaseInventory parameter hostname must be equal to the hosts in yaml
        or the BaseInventory parameter groups must equal to the hosts in yaml.
        """
        if options:
            self.options = options
        C.RETRY_FILES_ENABLED = False
        self.inventory = inventory
        # self.loader = self.loader_class()
        self.loader = DataLoader()
        self.results_callback = self.results_callback_class()
        # self.playbook_path = options.playbook_path
        self.playbook_path = playbook_path
        self.variable_manager = self.variable_manager_class(
            loader=self.loader, inventory=self.inventory
        )
        # self.passwords = options.passwords
        self.passwords = {"passwords": ''}  # 为了修改paramiko中的bug添加入,无实际意义
        self.__check() 
开发者ID:hequan2017,项目名称:chain,代码行数:24,代码来源:runner.py

示例2: __init__

# 需要导入模块: from ansible import constants [as 别名]
# 或者: from ansible.constants import RETRY_FILES_ENABLED [as 别名]
def __init__(self, playbook_path, inventory=None, options=None):
            """
            :param options: Ansible options like ansible.cfg
            :param inventory: Ansible inventory
            :param BaseInventory:The BaseInventory parameter hostname must be equal to the hosts in yaml
            or the BaseInventory parameter groups must equal to the hosts in yaml.
            """
            if options:
                self.options = options
            C.RETRY_FILES_ENABLED = False
            self.inventory = inventory
            # self.loader = self.loader_class()
            self.loader = DataLoader()
            self.results_callback = self.results_callback_class()
            # self.playbook_path = options.playbook_path
            self.playbook_path = playbook_path
            self.variable_manager = self.variable_manager_class(
                loader=self.loader, inventory=self.inventory
            )
            # self.passwords = options.passwords
            self.passwords = {"passwords":''}#为了修改paramiko中的bug添加入,无实际意义
            self.__check() 
开发者ID:hequan2017,项目名称:autoops,代码行数:24,代码来源:runner.py

示例3: __init__

# 需要导入模块: from ansible import constants [as 别名]
# 或者: from ansible.constants import RETRY_FILES_ENABLED [as 别名]
def __init__(self, inventory, options=None, stdout=None):
        """
        :param options: Ansible full_options like ansible.cfg
        :param inventory: Ansible inventory_obj
        """
        super().__init__(inventory, options=options)
        C.RETRY_FILES_ENABLED = False 
开发者ID:KubeOperator,项目名称:KubeOperator,代码行数:9,代码来源:runner.py


注:本文中的ansible.constants.RETRY_FILES_ENABLED属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。