#NEWLINE# def _run_server_ops( state , hostname ) : #NEWLINE# #INDENT# logger . debug ( 'Running all ops on {}' . format ( hostname ) ) #NEWLINE# for op_hash in state . op_order : #NEWLINE# #INDENT# op_meta = state . op_meta [ op_hash ] #NEWLINE# logger . info ( '{0} {1} on {2}' . format ( colored ( 'Starting operation:' , 'blue' ) , colored ( ', ' . join ( op_meta [ 'names' ] ) , attrs = [ 'bold' ] ) , colored ( hostname , attrs = [ 'bold' ] ) ) ) #NEWLINE# result = _run_op ( state , hostname , op_hash ) #NEWLINE# if ( result is False ) : #NEWLINE# #INDENT# raise PyinfraError ( 'Error in operation {0} on {1}' . format ( ', ' . join ( op_meta [ 'names' ] ) , hostname ) ) #NEWLINE# #UNINDENT# if state . print_lines : #NEWLINE# #INDENT# print ( )