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


Python AnsibleMapping._column_number方法代码示例

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


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

示例1: construct_yaml_map

# 需要导入模块: from ansible.parsing.yaml.objects import AnsibleMapping [as 别名]
# 或者: from ansible.parsing.yaml.objects.AnsibleMapping import _column_number [as 别名]
 def construct_yaml_map(self, node):
     data = AnsibleMapping()
     yield data
     value = self.construct_mapping(node)
     data.update(value)
     data._line_number   = value._line_number
     data._column_number = value._column_number
     data._data_source   = value._data_source
开发者ID:conlini,项目名称:frozen-ansible,代码行数:10,代码来源:constructor.py

示例2: construct_mapping

# 需要导入模块: from ansible.parsing.yaml.objects import AnsibleMapping [as 别名]
# 或者: from ansible.parsing.yaml.objects.AnsibleMapping import _column_number [as 别名]
    def construct_mapping(self, node, deep=False):
        ret = AnsibleMapping(super(Constructor, self).construct_mapping(node, deep))
        ret._line_number   = node.__line__
        ret._column_number = node.__column__

        # in some cases, we may have pre-read the data and then
        # passed it to the load() call for YAML, in which case we
        # want to override the default datasource (which would be
        # '<string>') to the actual filename we read in
        if self._ansible_file_name:
            ret._data_source = self._ansible_file_name
        else:
            ret._data_source = node.__datasource__

        return ret
开发者ID:dataxu,项目名称:ansible,代码行数:17,代码来源:constructor.py

示例3: construct_mapping

# 需要导入模块: from ansible.parsing.yaml.objects import AnsibleMapping [as 别名]
# 或者: from ansible.parsing.yaml.objects.AnsibleMapping import _column_number [as 别名]
 def construct_mapping(self, node, deep=False):
     ret = AnsibleMapping(super(Constructor, self).construct_mapping(node, deep))
     ret._line_number   = node.__line__
     ret._column_number = node.__column__
     ret._data_source   = node.__datasource__
     return ret
开发者ID:conlini,项目名称:frozen-ansible,代码行数:8,代码来源:constructor.py


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