ó ¡ôXc@sXddlZddlZddlmZddlmZmZdefd„ƒYZdS(iÿÿÿÿN(tArg(t IAMRequesttarg_account_nametGetAccountPolicyc BsheZdZeddƒeddddddd edd ƒed d 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_contentt policy_json((sK/usr/lib/python2.7/site-packages/euca2ools/commands/iam/getaccountpolicy.pyt print_result+s  N( t__name__t __module__t DESCRIPTIONRRRtNonetARGSR (((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.pyts