diff options
author | Martin Nagy <mnagy@redhat.com> | 2009-12-11 18:37:07 +0100 |
---|---|---|
committer | Martin Nagy <mnagy@redhat.com> | 2010-04-19 14:21:09 +0200 |
commit | d1b8b7ef414478f1f6a87353ec45d6c1196a70e6 (patch) | |
tree | 3bb6e2710285bff8dfbe288bb12ec6cbe269f42e | |
parent | a776fe4d4a8ff750aa963a6e08bca516e61bc2a3 (diff) | |
download | freeipa-master.tar.gz freeipa-master.tar.xz freeipa-master.zip |
-rw-r--r-- | ipapython/ipautil.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ipapython/ipautil.py b/ipapython/ipautil.py index efc7e028..ccec3d48 100644 --- a/ipapython/ipautil.py +++ b/ipapython/ipautil.py @@ -89,7 +89,7 @@ def write_tmp_file(txt): return fd -def run(args, stdin=None, raiseonerr=True, nolog=()): +def run(args, stdin=None, raiseonerr=False, nolog=()): """ Execute a command and return stdin, stdout and the process return code. @@ -133,6 +133,7 @@ def run(args, stdin=None, raiseonerr=True, nolog=()): logging.info('args=%s' % ' '.join(args)) logging.info('stdout=%s' % stdout) logging.info('stderr=%s' % stderr) + logging.info('return code=%s' % p.returncode) if p.returncode != 0 and raiseonerr: raise CalledProcessError(p.returncode, ' '.join(args)) |