Current File : //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