�
�Udac @ s d d l Z d d l Z d d l Z d d l m Z m Z d d l m Z m Z d d l m
Z
d � Z d e f d � � YZ
d e f d � � YZ d
e f d � � YZ d e f d
� � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d S( i����N( t
BOOLEANS_TRUEt BOOLEANS_FALSE( t string_typest text_type( t zipc C s= t | t t f � r t | � S| d k r2 | g St � Sd S( N( t
isinstancet listt tuplet None( t val( ( sO /usr/lib/python2.7/site-packages/ansible/module_utils/network/common/parsing.pyt to_list% s
t FailedConditionsErrorc B s e Z d � Z RS( c C s# t t | � j | � | | _ d S( N( t superR t __init__t failed_conditions( t selft msgR ( ( sO /usr/lib/python2.7/site-packages/ansible/module_utils/network/common/parsing.pyR
/ s ( t __name__t
__module__R
( ( ( sO /usr/lib/python2.7/site-packages/ansible/module_utils/network/common/parsing.pyR . s t FailedConditionalErrorc B s e Z d � Z RS( c C s# t t | � j | � | | _ d S( N( R R R
t failed_conditional( R R R ( ( sO /usr/lib/python2.7/site-packages/ansible/module_utils/network/common/parsing.pyR
5 s ( R R R
( ( ( sO /usr/lib/python2.7/site-packages/ansible/module_utils/network/common/parsing.pyR 4 s t AddCommandErrorc B s e Z d � Z RS( c C s# t t | � j | � | | _ d S( N( R R R
t command( R R R ( ( sO /usr/lib/python2.7/site-packages/ansible/module_utils/network/common/parsing.pyR
; s ( R R R
( ( ( sO /usr/lib/python2.7/site-packages/ansible/module_utils/network/common/parsing.pyR : s t AddConditionErrorc B s e Z d � Z RS( c C s# t t | � j | � | | _ d S( N( R R R
t condition( R R R ( ( sO /usr/lib/python2.7/site-packages/ansible/module_utils/network/common/parsing.pyR
A s ( R R R
( ( ( sO /usr/lib/python2.7/site-packages/ansible/module_utils/network/common/parsing.pyR @ s t Clic B sS e Z d � Z e d � � Z d d � Z d d d d � Z d d � Z d � Z RS( c C s+ | | _ | j p d | _ t � | _ d S( Nt text( t
connectiont default_outputR t _commands( R R ( ( sO /usr/lib/python2.7/site-packages/ansible/module_utils/network/common/parsing.pyR
H s c C s g | j D] } t | � ^ q
S( N( R t str( R t c( ( sO /usr/lib/python2.7/site-packages/ansible/module_utils/network/common/parsing.pyt commandsM s c C sI t � } x- t | � D] } | j | j | | � � q W| j j | � S( N( R R
t appendt
to_commandR t run_commands( R R t outputt objectst cmd( ( sO /usr/lib/python2.7/site-packages/ansible/module_utils/network/common/parsing.pyt __call__Q s c K sh | p | j } t | t � r"