#NEWLINE# def start( args ) : #NEWLINE# #INDENT# if ( not args . skip_confirm ) : #NEWLINE# #INDENT# deploy_utils . confirm_start ( args ) #NEWLINE# #UNINDENT# get_zk_service_config ( args ) #NEWLINE# hosts = hosts . zookeeper_config . jobs [ 'zookeeper' ] . hosts #NEWLINE# args . task_map = deploy_utils . parse_args_host_and_task ( args , hosts ) #NEWLINE# for host_id in ( args . task_map . keys ( ) or hosts . keys ( ) ) : #NEWLINE# #INDENT# for instance_id in ( args . task_map . get ( host_id ) or range ( hosts [ host_id ] . instance_num ) ) : #NEWLINE# #INDENT# instance_id = ( ( - 1 ) if ( not deploy_utils . is_multiple_instances ( host_id , hosts ) ) else instance_id ) #NEWLINE# start_job ( args , hosts [ host_id ] . ip , 'zookeeper' , host_id , instance_id )