�
�Udac @` s� d d l m Z m Z m Z e Z d d l m Z m Z d d l m
Z
d d l m Z m
Z
d Z e i � a d � Z d e d � Z d S(
i ( t absolute_importt divisiont print_function( t Mappingt Set( t is_sequence( t CLIArgst
GlobalCLIArgst CLIARGSc C` s t j | � a d S( s% Initialize the global context objectsN( R t from_optionsR ( t cli_args( ( s3 /usr/lib/python2.7/site-packages/ansible/context.pyt _init_global_context s c ` s � � � f d � } | S( sA Closure over getting a key from CLIARGS with shallow copy functionality
Primarily used in ``FieldAttribute`` where we need to defer setting the default
until after the CLI arguments have been parsed
This function is not directly bound to ``CliArgs`` so that it works with
``CLIARGS`` being replaced
c ` sS t j � d � �} � s | St | � r0 | St | t t f � rO | j � S| S( Nt default( R t getR t
isinstanceR R t copy( t value( R t keyt shallowcopy( s3 /usr/lib/python2.7/site-packages/ansible/context.pyt inner/ s
( ( R R R R ( ( R R R s3 /usr/lib/python2.7/site-packages/ansible/context.pyt cliargs_deferred_get&