Current File : //usr/lib/python2.7/site-packages/euca2ools/commands/iam/getaccountpolicy.pyo
�
��Xc@sXddlZddlZddlmZddlmZmZdefd��YZdS(i����N(tArg(t
IAMRequesttarg_account_nametGetAccountPolicycBsheZdZedd�eddddddd	edd
�eddd
dddd�gZd�ZRS(s9[Eucalyptus cloud admin only] Display an account's policythelps[name or ID of the account the
                             policy is attached to (required)s-ps
--policy-nametdestt
PolicyNametmetavartPOLICYtrequireds%name of the policy to show (required)s--pretty-printtactiont
store_truetroute_tos&reformat the policy for easier readingcCs�tj|d�}|jdr�ytj|�}WnCtk
rx|jjddt�tdj	|jd���nXtj
|dd�}n|GHdS(	NtPolicyDocumenttpretty_printsJSON parse errortexc_infos-policy '{0}' does not appear to be valid JSONRtindenti(turllibtunquotetargstjsontloadst
ValueErrortlogtdebugtTruetformattdumps(tselftresulttpolicy_contenttpolicy_json((sK/usr/lib/python2.7/site-packages/euca2ools/commands/iam/getaccountpolicy.pytprint_result+s

N(	t__name__t
__module__tDESCRIPTIONRRRtNonetARGSR (((sK/usr/lib/python2.7/site-packages/euca2ools/commands/iam/getaccountpolicy.pyR"s(RRtrequestbuilderRteuca2ools.commands.iamRRR(((sK/usr/lib/python2.7/site-packages/euca2ools/commands/iam/getaccountpolicy.pyt<module>s