Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/module_utils/facts/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/module_utils/facts/ansible_collector.pyc

�
�Udac@`s�ddlmZmZmZeZddlZddlZddlm	Z	ddlm
Z
de
jfd��YZde
jfd��YZ
dddddd	�ZdS(
i(tabsolute_importtdivisiontprint_functionN(ttimeout(t	collectortAnsibleFactCollectorcB`s8eZdZdddd�Zd�Zddd�ZRS(smA FactCollector that returns results under 'ansible_facts' top level key.

       If a namespace if provided, facts will be collected under that namespace.
       For ex, a ansible.module_utils.facts.namespace.PrefixFactNamespace(prefix='ansible_')

       Has a 'from_gather_subset() constructor that populates collectors based on a
       gather_subset specifier.cC`s,tt|�jd|d|�||_dS(Nt
collectorst	namespace(tsuperRt__init__tfilter_spec(tselfRRR
((sP/usr/lib/python2.7/site-packages/ansible/module_utils/facts/ansible_collector.pyR	0scC`sR|s|dkr|Sg|j�D]*\}}tj||�r$||f^q$S(Nt*(titemstfnmatch(Rt
facts_dictR
txty((sP/usr/lib/python2.7/site-packages/ansible/module_utils/facts/ansible_collector.pyt_filter7scC`s�|p	i}i}x�|jD]�}i}y|jd|d|�}Wn9tk
r}tjjt|��tjjd�nX|j|j��|j|j	||j
��qW|S(Ntmoduletcollected_factss
(Rtcollect_with_namespacet	ExceptiontsyststderrtwritetreprtupdatetcopyRR
(RRRRt
collector_objt	info_dictte((sP/usr/lib/python2.7/site-packages/ansible/module_utils/facts/ansible_collector.pytcollect>s
 N(t__name__t
__module__t__doc__tNoneR	RR (((sP/usr/lib/python2.7/site-packages/ansible/module_utils/facts/ansible_collector.pyR's	tCollectorMetaDataCollectorcB`sDeZdZdZeg�Zddddd�Zddd�ZRS(s@Collector that provides a facts with the gather_subset metadata.t
gather_subsetcC`s/tt|�j||�||_||_dS(N(RR%R	R&tmodule_setup(RRRR&R'((sP/usr/lib/python2.7/site-packages/ansible/module_utils/facts/ansible_collector.pyR	_s	cC`s-i|jd6}|jr)|j|d<n|S(NR&R'(R&R'(RRRt
meta_facts((sP/usr/lib/python2.7/site-packages/ansible/module_utils/facts/ansible_collector.pyR ds	N(	R!R"R#tnametsett	_fact_idsR$R	R (((sP/usr/lib/python2.7/site-packages/ansible/module_utils/facts/ansible_collector.pyR%Ys
c
C`s�|p	d}|pdg}|p'tj}|p6t�}tjd|d|d|d|�}g}x*|D]"}|d|�}	|j|	�qjWtd|dt�}
|j|
�td	|d
|d|�}|S(NRtalltall_collector_classestminimal_gather_subsetR&tgather_timeoutRR'RR
(	RtDEFAULT_GATHER_TIMEOUTt	frozensetRt$collector_classes_from_gather_subsettappendR%tTrueR(R-RR
R&R/R.tcollector_classesRtcollector_classRtcollector_meta_data_collectortfact_collector((sP/usr/lib/python2.7/site-packages/ansible/module_utils/facts/ansible_collector.pytget_ansible_collectorks(		
	
	(t
__future__RRRttypet
__metaclass__RRtansible.module_utils.factsRRtBaseFactCollectorRR%R$R9(((sP/usr/lib/python2.7/site-packages/ansible/module_utils/facts/ansible_collector.pyt<module>s2

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]