summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2015-06-15 18:43:02 +0200
committerLubomir Rintel <lkundrak@v3.sk>2015-06-15 18:44:04 +0200
commitac8a103660806daf04fd66e4c872749fba8e0432 (patch)
tree2e463037d0f7ca1711274772a40c88e1e0f665bd
parent6ccf90a5bb37880741519a00b644a3d85b64d3a0 (diff)
downloadNetworkManager-ac8a103660806daf04fd66e4c872749fba8e0432.tar.gz
contrib/bkr: don't drop error output
-rwxr-xr-xcontrib/rh-bkr/bkr.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/rh-bkr/bkr.py b/contrib/rh-bkr/bkr.py
index 1d88e8370f..a9e2b5c2da 100755
--- a/contrib/rh-bkr/bkr.py
+++ b/contrib/rh-bkr/bkr.py
@@ -265,9 +265,11 @@ def nitrate_get_cases_by_one_tag(tag_name):
cases_with_tag = _nitrate_index_cases_by_case_id(cases_with_tag)
return sub_dict(cases, cases_with_tag.keys())
-def _call(args, stderr=devnull, reason=None, dry_run=False, verbose=False):
+def _call(args, stderr=None, reason=None, dry_run=False, verbose=False):
if verbose:
print(">%s '%s'" % ('x' if dry_run else '>', "' '".join(args)))
+ elif stderr is None:
+ stderr = devnull
try:
if dry_run:
output = ''