#NEWLINE# @ click . command ( ) #NEWLINE# @ click . argument ( 'identifier' ) #NEWLINE# @ environment . pass_env #NEWLINE# def cli( env , identifier ) : #NEWLINE# #INDENT# 'Cancel global IP.' #NEWLINE# mgr = SoftLayer . NetworkManager ( env . client ) #NEWLINE# global_ip_id = helpers . resolve_id ( mgr . resolve_global_ip_ids , identifier , name = 'global ip' ) #NEWLINE# if ( not ( env . skip_confirmations or formatting . no_going_back ( global_ip_id ) ) ) : #NEWLINE# #INDENT# raise exceptions . CLIAbort ( 'Aborted' ) #NEWLINE# #UNINDENT# mgr . cancel_global_ip ( global_ip_id )