관리-도구
편집 파일: collector.cpython-39.opt-1.pyc
a �)g}9 � @ s� d dl mZmZmZ eZd dlmZ d dlZd dl m m mZ d dlmZ G dd� de�ZG dd� de�ZG d d � d e�ZG dd� d�Zd#d d�Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd � Z d$d!d"�Z!dS )%� )�absolute_import�division�print_function)�defaultdictN)�timeoutc @ s e Zd ZdZdS )�CycleFoundInFactDepsa Indicates there is a cycle in fact collector deps If collector-B requires collector-A, and collector-A requires collector-B, that is a cycle. In that case, there is no ordering that will satisfy B before A and A and before B. That will cause this error to be raised. N)�__name__� __module__�__qualname__�__doc__� r r �H/usr/lib/python3.9/site-packages/ansible/module_utils/facts/collector.pyr ) s r c @ s e Zd ZdS )�UnresolvedFactDepN�r r r r r r r r 4 s r c @ s e Zd ZdS )�CollectorNotFoundErrorNr r r r r r 8 s r c @ sZ e Zd Ze� ZdZdZe� Zddd�Ze dd� �Z dd� Zd d � Zddd�Z dd d�ZdS )�BaseFactCollector�GenericNc C s0 |pg | _ || _t| jg�| _| j�| j� dS )zzBase class for things that collect facts. 'collectors' is an optional list of other FactCollectors for composing.N)� collectors� namespace�set�nameZfact_ids�update� _fact_ids)�selfr r r r r �__init__C s zBaseFactCollector.__init__c C s |� dd �| jkr| S d S )N�system)�get� _platform)�cls� platform_infor r r �platform_matchP s z BaseFactCollector.platform_matchc C s | j r| j �|�S |S �N)r Z transform)r Zkey_namer r r �_transform_nameV s z!BaseFactCollector._transform_namec C s. t |�� �D ]}| �|�}|�|�||<