[node-patches] Change in ovirt-node[master]: add debug info and confirm shell is True in function __check...

fabiand at fedoraproject.org fabiand at fedoraproject.org
Mon Sep 23 08:06:23 UTC 2013


Fabian Deutsch has posted comments on this change.

Change subject: add debug info and confirm shell is True in function __check_for_problems of process.py
......................................................................


Patch Set 1: Code-Review-1

(1 comment)

....................................................
File src/ovirt/node/utils/process.py
Line 46: 
Line 47: def __check_for_problems(args, kwargs):
Line 48:     if ("shell" in kwargs and kwargs["shell"]) and \
Line 49:             (args and type(args[0]) is list):
Line 50:         LOGGER.debug(traceback.format_exc())
Please use

    LOGGER.exception("Invaid kwargs combination")

(this will add a stacktrace to the log) instead of importing traceback
Line 51:         raise RuntimeError("Combining  shell=True and a command list does " +
Line 52:                            "not work. With shell=True the first argument " +
Line 53:                            "must be a string. A list otherwise.")
Line 54: 


-- 
To view, visit http://gerrit.ovirt.org/19426
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I32fa0743a781e37799013827310b1895b636d576
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: hai bo <boh.ricky at gmail.com>
Gerrit-Reviewer: Fabian Deutsch <fabiand at fedoraproject.org>
Gerrit-Reviewer: hadong <hadong0720 at gmail.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes



More information about the node-patches mailing list