summaryrefslogtreecommitdiffstats
path: root/openstack/common/processutils.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-06-11 18:43:09 +0000
committerGerrit Code Review <review@openstack.org>2013-06-11 18:43:09 +0000
commit109e1b525dc96fd2d523dbc41c018ee975030e82 (patch)
treec33556b56380515caca0219f49e4f2f69bb3dcb8 /openstack/common/processutils.py
parent165b98415d3949f8a9dddbdbc1f304fb7d257718 (diff)
parent7119e29cb535426c587eaf2cfc2cfcd11a422df0 (diff)
downloadoslo-109e1b525dc96fd2d523dbc41c018ee975030e82.tar.gz
oslo-109e1b525dc96fd2d523dbc41c018ee975030e82.tar.xz
oslo-109e1b525dc96fd2d523dbc41c018ee975030e82.zip
Merge "Enable hacking H404 test."
Diffstat (limited to 'openstack/common/processutils.py')
-rw-r--r--openstack/common/processutils.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/openstack/common/processutils.py b/openstack/common/processutils.py
index 02cfada..5417055 100644
--- a/openstack/common/processutils.py
+++ b/openstack/common/processutils.py
@@ -74,9 +74,9 @@ def _subprocess_setup():
def execute(*cmd, **kwargs):
- """
- Helper method to shell out and execute a command through subprocess with
- optional retry.
+ """Helper method to shell out and execute a command through subprocess.
+
+ Allows optional retry.
:param cmd: Passed to subprocess.Popen.
:type cmd: string
@@ -187,8 +187,7 @@ def execute(*cmd, **kwargs):
def trycmd(*args, **kwargs):
- """
- A wrapper around execute() to more easily handle warnings and errors.
+ """A wrapper around execute() to more easily handle warnings and errors.
Returns an (out, err) tuple of strings containing the output of
the command's stdout and stderr. If 'err' is not empty then the