<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 helpers <EOL> @ click . command ( ) <EOL> @ click . argument ( '<STR_LIT>' ) <EOL> @ click . option ( '<STR_LIT>' , help = "<STR_LIT>" ) <EOL> @ click . option ( '<STR_LIT>' , help = "<STR_LIT>" ) <EOL> @ click . option ( '<STR_LIT>' , help = "<STR_LIT>" ) <EOL> @ environment . pass_env <EOL> def cli ( env , identifier , name , note , tag ) : <EOL> """<STR_LIT>""" <EOL> image_mgr = SoftLayer . ImageManager ( env . client ) <EOL> data = { } <EOL> if name : <EOL> data [ '<STR_LIT:name>' ] = name <EOL> if note : <EOL> data [ '<STR_LIT>' ] = note <EOL> if tag : <EOL> data [ '<STR_LIT>' ] = tag <EOL> image_id = helpers . resolve_id ( image_mgr . resolve_ids , identifier , '<STR_LIT:image>' ) <EOL> if not image_mgr . edit ( image_id , ** data ) : <EOL> raise exceptions . CLIAbort ( "<STR_LIT>" ) </s>
