%PDF- %PDF-
| Direktori : /lib/python3.9/site-packages/ansible/module_utils/facts/__pycache__/ |
| Current File : //lib/python3.9/site-packages/ansible/module_utils/facts/__pycache__/compat.cpython-39.pyc |
a
�)g � @ sR d dl mZmZmZ eZd dlmZ d dlm Z d dlm
Z
dd� Zd
dd �ZdS )� )�absolute_import�division�print_function)�PrefixFactNamespace)�default_collectors)�ansible_collectorc C s | j d }t| |d�S )a compat api for ansible 2.2/2.3 module_utils.facts.get_all_facts method
Expects module to be an instance of AnsibleModule, with a 'gather_subset' param.
returns a dict mapping the bare fact name ('default_ipv4' with no 'ansible_' namespace) to
the fact value.�
gather_subset)r )�params�
ansible_facts)�moduler � r �E/usr/lib/python3.9/site-packages/ansible/module_utils/facts/compat.py�
get_all_facts% s
r Nc C st |p| j �ddg�}| j �dd�}| j �dd�}tg d��}tj}tdd d
�}tj||||||d�}|j| d�}|S )
a� Compat api for ansible 2.0/2.2/2.3 module_utils.facts.ansible_facts method
2.3/2.3 expects a gather_subset arg.
2.0/2.1 does not except a gather_subset arg
So make gather_subsets an optional arg, defaulting to configured DEFAULT_GATHER_TIMEOUT
'module' should be an instance of an AnsibleModule.
returns a dict mapping the bare fact name ('default_ipv4' with no 'ansible_' namespace) to
the fact value.
r �all�gather_timeout�
�filter�*)ZapparmorZcapsZcmdlineZ date_timeZdistributionZdns�envZfips�localZlsbZpkg_mgr�platformZpythonZselinuxZservice_mgrZssh_pub_keys�userZansible� )Znamespace_name�prefix)�all_collector_classes� namespace�filter_specr r �minimal_gather_subset)r ) r �get� frozensetr Z
collectorsr r Zget_ansible_collectorZcollect) r r r r r r r Zfact_collectorZ
facts_dictr r r
r
1 s ��r
)N)
Z
__future__r r r �typeZ
__metaclass__Z$ansible.module_utils.facts.namespacer Zansible.module_utils.factsr r r r
r r r r
�<module> s