�
�Udac @` sh d d l m Z m Z m Z e Z d d l Z d d l m Z d d l m
Z
d e
f d � � YZ d S( i ( t absolute_importt divisiont print_functionN( t PrefixFactNamespace( t BaseFactCollectort OhaiFactCollectorc B` sV e Z d Z d Z e � Z d d d � Z d � Z d � Z d � Z
d d d � Z RS( sI This is a subclass of Facts for including information gathered from Ohai.t ohaic C` s8 t d d d d � } t t | � j d | d | � d S( Nt namespace_nameR t prefixt ohai_t
collectorst namespace( R t superR t __init__( t selfR
R ( ( sI /usr/lib/python2.7/site-packages/ansible/module_utils/facts/other/ohai.pyR
s c C` s | j d � } | S( NR ( t get_bin_path( R t modulet ohai_path( ( sI /usr/lib/python2.7/site-packages/ansible/module_utils/facts/other/ohai.pyt find_ohai% s c C` s% | j | � \ } } } | | | f S( N( t run_command( R R R t rct outt err( ( sI /usr/lib/python2.7/site-packages/ansible/module_utils/facts/other/ohai.pyt run_ohai) s c C` sH | j | � } | s d S| j | | � \ } } } | d k rD d S| S( Ni ( R t NoneR ( R R R R R R ( ( sI /usr/lib/python2.7/site-packages/ansible/module_utils/facts/other/ohai.pyt get_ohai_output- s c C` sZ i } | s | S| j | � } | d k r/ | Sy t j | � } Wn t k
rU n X| S( N( R R t jsont loadst Exception( R R t collected_factst
ohai_factst ohai_output( ( sI /usr/lib/python2.7/site-packages/ansible/module_utils/facts/other/ohai.pyt collect8 s
N( t __name__t
__module__t __doc__t namet sett _fact_idsR R
R R R R ( ( ( sI /usr/lib/python2.7/site-packages/ansible/module_utils/facts/other/ohai.pyR s ( t
__future__R R R t typet
__metaclass__R t$ ansible.module_utils.facts.namespaceR t$ ansible.module_utils.facts.collectorR R ( ( ( sI /usr/lib/python2.7/site-packages/ansible/module_utils/facts/other/ohai.pyt <module> s
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]