Ë
    ÇVhÞ  ã                  óB   — d dl mZ d dlmZ d dlmZ d dlmZ d„ Zdd„Zy)	é    )Úannotations)ÚPrefixFactNamespace)Údefault_collectors)Úansible_collectorc                ó:   — | j                   d   }t        | |¬«      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   s     úQ/home/dcms/DCMS/lib/python3.12/site-packages/ansible/module_utils/facts/compat.pyÚget_all_factsr   $   s   € ð —M‘M /Ñ2€MÜ˜¨}Ô=Ð=ó    Nc                óf  — |xs | j                   j                  ddg«      }| j                   j                  dd«      }| j                   j                  dd«      }t        g d¢«      }t        j                  }t        dd	¬
«      }t        j                  ||||||¬«      }|j                  | ¬«      }|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Ú*)ÚapparmorÚcapsÚcmdlineÚ	date_timeÚdistributionÚdnsÚenvÚfipsÚlocalÚlsbÚpkg_mgrÚplatformÚpythonÚselinuxÚservice_mgrÚssh_pub_keysÚuserÚansibleÚ )Únamespace_nameÚprefix)Úall_collector_classesÚ	namespaceÚfilter_specr   r   Úminimal_gather_subset)r   )	r	   ÚgetÚ	frozensetr   Ú
collectorsr   r   Úget_ansible_collectorÚcollect)	r   r   r   r,   r-   r*   r+   Úfact_collectorÚ
facts_dicts	            r   r
   r
   0   s¿   € ð "ÒP V§]¡]×%6Ñ%6°ÈÈÓ%P€MØ—]‘]×&Ñ&Ð'7¸Ó<€NØ—-‘-×#Ñ# H¨cÓ2€Kä%ò 'Nó OÐô
 /×9Ñ9Ðô $°9ÀRÔH€Iô 	×/Ñ/ÐF[Ø:CØ<GØ>KØ?MØF[ô	]ð ð  ×'Ñ'¨vÐ'Ó6€JàÐr   )N)	Ú
__future__r   Ú$ansible.module_utils.facts.namespacer   Úansible.module_utils.factsr   r   r   r
   © r   r   ú<module>r9      s   ðõ: #å DÝ 9Ý 8ò	>ô&r   