def _cinder_execute(*args, **kargs):
 cmd = (args[1:(-3)] if (args[0] == 'raidcom') else args)
 (ret, stdout, stderr) = EXECUTE_TABLE.get(cmd, CMD_SUCCEED)
 if (ret == SUCCEED):
  return (stdout, stderr)
 else:
  pee = processutils.ProcessExecutionError(exit_code=ret, stdout=stdout, stderr=stderr)
  raise pee

def _cinder_execute ( * args , ** kargs ) : cmd = ( args [ 1 : ( - 3 ) ] if ( args [ 0 ] == 'raidcom' ) else args ) ( ret , stdout , stderr ) = EXECUTE_TABLE . get ( cmd , CMD_SUCCEED ) if ( ret == SUCCEED ) : return ( stdout , stderr ) else : pee = processutils . ProcessExecutionError ( exit_code = ret , stdout = stdout , stderr = stderr ) raise pee
return predefined results or raise an exception .