#NEWLINE# def add_to_params( self , parameters , value ) : #NEWLINE# #INDENT# '\n        This gets called with the value of our ``--priv-launch-key``\n        if it is specified.  It needs to determine if the path\n        provided is valid and, if it is, it stores it in the instance\n        variable ``_key_path`` for use by the decrypt routine.\n        ' #NEWLINE# if value : #NEWLINE# #INDENT# path = os . path . expandvars ( value ) #NEWLINE# path = os . path . expanduser ( path ) #NEWLINE# if os . path . isfile ( path ) : #NEWLINE# #INDENT# self . _key_path = path #NEWLINE# endpoint_prefix = self . _operation_model . service_model . endpoint_prefix #NEWLINE# event = ( 'after-call.%s.%s' % ( endpoint_prefix , self . _operation_model . name ) ) #NEWLINE# self . _session . register ( event , self . _decrypt_password_data ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# msg = 'priv-launch-key should be a path to the local SSH private key file used to launch the instance.' #NEWLINE# raise ValueError ( msg )