Viewing File: /usr/lib/python2.7/site-packages/euca2ools/commands/iam/getrolepolicy.pyc

ó
¡ôXc@s^ddlZddlZddlmZddlmZmZmZdefd„ƒYZdS(iÿÿÿÿN(tArg(t
IAMRequestt
AS_ACCOUNTtarg_rolet
GetRolePolicycBskeZdZeddƒeddddddd	edd
ƒeddd
ddddƒegZd„Z	RS(sDisplay a role's policythelps)role the poilcy 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((sH/usr/lib/python2.7/site-packages/euca2ools/commands/iam/getrolepolicy.pytprint_result+s

N(
t__name__t
__module__tDESCRIPTIONRRRtNoneRtARGSR!(((sH/usr/lib/python2.7/site-packages/euca2ools/commands/iam/getrolepolicy.pyR"s	(	RRtrequestbuilderRteuca2ools.commands.iamRRRR(((sH/usr/lib/python2.7/site-packages/euca2ools/commands/iam/getrolepolicy.pyt<module>s
Back to Directory File Manager