�
�Udac @` sk d d l m Z m Z m Z e Z d d l m Z d d l m Z d d l m
Z
d � Z d d � Z
d S( i ( t absolute_importt divisiont print_function( t PrefixFactNamespace( t default_collectors( t ansible_collectorc C` s | j d } t | d | �S( s 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.t
gather_subset( t paramst
ansible_facts( t moduleR ( ( sE /usr/lib/python2.7/site-packages/ansible/module_utils/facts/compat.pyt
get_all_facts% s
c C` s� | p | j j d d g � } | j j d d � } | j j d d � } t d d d d
d d d
d d d d d d d d d d g � } t j } t d d d d � } t j d | d | d | d | d | d | � } | j d | � } | S(! s� 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 t allt gather_timeouti
t filtert *t apparmort capst cmdlinet date_timet distributiont dnst envt fipst localt lsbt pkg_mgrt platformt pythont selinuxt service_mgrt ssh_pub_keyst usert namespace_namet ansiblet prefixt t all_collector_classest namespacet filter_spect minimal_gather_subsetR ( R t gett frozensetR t
collectorsR R t get_ansible_collectort collect( R R R R&