Viewing File: /usr/lib/python2.7/site-packages/euca2ools/commands/ec2/getpassword.pyc

ó
¡ôXc@sRddlZddlmZddlmZddlZdefd„ƒYZdS(iÿÿÿÿN(tGetPasswordData(tArgtGetPasswordcBsGeZdZdZedddddedddd	ƒgZd
„ZRS(RsCRetrieve the administrator password for an instance running Windowss-ks--priv-launch-keytmetavartFILEtrequiredtroute_tothelpsyfile containing the private key corresponding to the
                key pair supplied at instance launch time (required)cCsŒy|d}Wntk
r-tdƒ‚nXtjdddd|jdgdtjd	tjƒ}|jtj|ƒƒ\}}|GHdS(
NtpasswordDatas(no password data found for this instancetopenssltrsautls-decrypts-inkeytpriv_launch_keytstdintstdout(tAttributeErrort
subprocesstPopentargstPIPEtcommunicatetbase64t	b64decode(tselftresulttpwdatatcmdR
t_((sF/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/getpassword.pytprint_result)s
N(	t__name__t
__module__tNAMEtDESCRIPTIONRtTruetNonetARGSR(((sF/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/getpassword.pyR s(Rt&euca2ools.commands.ec2.getpassworddataRtrequestbuilderRRR(((sF/usr/lib/python2.7/site-packages/euca2ools/commands/ec2/getpassword.pyt<module>s
Back to Directory File Manager