Viewing File: /usr/lib/python2.7/site-packages/euca2ools/commands/ec2/getpassword.pyc
ó
¡ôXc @ sR d d l Z d d l m Z d d l m Z d d l Z d e f d „ ƒ YZ d S( iÿÿÿÿN( t GetPasswordData( t Argt GetPasswordc B sG e Z d Z d Z e d d d d d e d d d d ƒg Z d
„ Z RS( R sC Retrieve the administrator password for an instance running Windowss -ks --priv-launch-keyt metavart FILEt requiredt route_tot helpsy file containing the private key corresponding to the
key pair supplied at instance launch time (required)c C sŒ y | d } Wn t k
r- t d ƒ ‚ n Xt j d d d d | j d g d t j d t j ƒ} | j t j | ƒ ƒ \ } } | GHd S(
Nt passwordDatas( no password data found for this instancet opensslt rsautls -decrypts -inkeyt priv_launch_keyt stdint stdout( t AttributeErrort
subprocesst Popent argst PIPEt communicatet base64t b64decode( t selft resultt pwdatat cmdR
t _( ( sF /usr/lib/python2.7/site-packages/euca2ools/commands/ec2/getpassword.pyt print_result) s
N( t __name__t
__module__t NAMEt DESCRIPTIONR t Truet Nonet ARGSR ( ( ( sF /usr/lib/python2.7/site-packages/euca2ools/commands/ec2/getpassword.pyR s ( R t&