#NEWLINE# def _verify_run( out , cmd = None ) : #NEWLINE# #INDENT# '\n    Crash to the log if command execution was not successful.\n    ' #NEWLINE# if ( out . get ( 'retcode' , 0 ) and out [ 'stderr' ] ) : #NEWLINE# #INDENT# if cmd : #NEWLINE# #INDENT# log . debug ( 'Command: "{0}"' . format ( cmd ) ) #NEWLINE# #UNINDENT# log . debug ( 'Return code: {0}' . format ( out . get ( 'retcode' ) ) ) #NEWLINE# log . debug ( 'Error output:\n{0}' . format ( out . get ( 'stderr' , 'N/A' ) ) ) #NEWLINE# raise CommandExecutionError ( out [ 'stderr' ] )