�
�Udac @` s� d d l m Z m Z m Z e Z d d l Z d d l Z d d l m Z d d l
m Z d d l m
Z
m Z d d l m Z m Z d d l m Z d e f d � � YZ d
e f d � � YZ d S( i ( t absolute_importt divisiont print_functionN( t reduce( t bytes_to_human( t get_file_contentt get_mount_size( t Hardwaret HardwareCollector( t timeoutt
SunOSHardwarec B` se e Z d Z d Z d d � Z d d � Z d � Z e j � d � � Z d � Z
d � Z d � Z RS(
s�
In addition to the generic memory and cpu facts, this also sets
swap_reserved_mb and swap_allocated_mb that is available from *swap -s*.
t SunOSc C` s� i } i d d 6d d 6d d 6| j _ | j � } | j � } | j � } | j � } | j � } i } y | j � } Wn t j k
r� n X| j
| � | j
| � | j
| � | j
| � | j
| � | j
| � | S( Nt Ct LANGt LC_ALLt
LC_NUMERIC( t modulet run_command_environ_updatet
get_cpu_factst get_memory_factst
get_dmi_factst get_device_factst get_uptime_factst get_mount_factsR t TimeoutErrort update( t selft collected_factst hardware_factst cpu_factst memory_factst dmi_factst device_factst uptime_factst mount_facts( ( sM /usr/lib/python2.7/site-packages/ansible/module_utils/facts/hardware/sunos.pyt populate'