<s> from awscli . customizations . emr import argumentschema <EOL> from awscli . customizations . emr import emrutils <EOL> from awscli . customizations . emr import helptext <EOL> from awscli . customizations . emr import steputils <EOL> from awscli . customizations . emr . command import Command <EOL> class AddSteps ( Command ) : <EOL> NAME = '<STR_LIT>' <EOL> DESCRIPTION = ( '<STR_LIT>' ) <EOL> ARG_TABLE = [ <EOL> { '<STR_LIT:name>' : '<STR_LIT>' , '<STR_LIT>' : True , <EOL> '<STR_LIT>' : helptext . CLUSTER_ID <EOL> } , <EOL> { '<STR_LIT:name>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : True , <EOL> '<STR_LIT>' : '<STR_LIT:+>' , <EOL> '<STR_LIT>' : argumentschema . STEPS_SCHEMA , <EOL> '<STR_LIT>' : helptext . STEPS <EOL> } <EOL> ] <EOL> def _run_main_command ( self , parsed_args , parsed_globals ) : <EOL> parsed_steps = parsed_args . steps <EOL> release_label = emrutils . get_release_label ( <EOL> parsed_args . cluster_id , self . _session , self . region , <EOL> parsed_globals . endpoint_url , parsed_globals . verify_ssl ) <EOL> step_list = steputils . build_step_config_list ( <EOL> parsed_step_list = parsed_steps , region = self . region , <EOL> release_label = release_label ) <EOL> parameters = { <EOL> '<STR_LIT>' : parsed_args . cluster_id , <EOL> '<STR_LIT>' : step_list <EOL> } <EOL> emrutils . call_and_display_response ( self . _session , '<STR_LIT>' , <EOL> parameters , parsed_globals ) <EOL> return <NUM_LIT:0> </s>
