<s> """<STR_LIT>""" <EOL> import click <EOL> import SoftLayer <EOL> from SoftLayer . CLI import environment <EOL> from SoftLayer . CLI import exceptions <EOL> from SoftLayer . CLI import formatting <EOL> from SoftLayer . CLI import helpers <EOL> @ click . command ( ) <EOL> @ click . argument ( '<STR_LIT>' ) <EOL> @ click . option ( '<STR_LIT>' , '<STR_LIT>' , help = "<STR_LIT>" ) <EOL> @ click . option ( <EOL> '<STR_LIT>' , <EOL> help = """<STR_LIT>""" ) <EOL> @ helpers . multi_option ( '<STR_LIT>' , '<STR_LIT>' , <EOL> help = "<STR_LIT>" ) <EOL> @ environment . pass_env <EOL> def cli ( env , identifier , postinstall , key , image ) : <EOL> """<STR_LIT>""" <EOL> vsi = SoftLayer . VSManager ( env . client ) <EOL> vs_id = helpers . resolve_id ( vsi . resolve_ids , identifier , '<STR_LIT>' ) <EOL> keys = [ ] <EOL> if key : <EOL> for single_key in key : <EOL> resolver = SoftLayer . SshKeyManager ( env . client ) . resolve_ids <EOL> key_id = helpers . resolve_id ( resolver , single_key , '<STR_LIT>' ) <EOL> keys . append ( key_id ) <EOL> if not ( env . skip_confirmations or formatting . no_going_back ( vs_id ) ) : <EOL> raise exceptions . CLIAbort ( '<STR_LIT>' ) <EOL> vsi . reload_instance ( vs_id , <EOL> post_uri = postinstall , <EOL> ssh_keys = keys , <EOL> image_id = image ) </s>
