%PDF- %PDF-
Direktori : /proc/self/root/lib/python2.7/site-packages/euca2ools/commands/ec2/ |
Current File : //proc/self/root/lib/python2.7/site-packages/euca2ools/commands/ec2/getpassword.pyo |
� ��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&