Document return type from utils.execute().

Change-Id: Id0bc0dff09a809fe3999c4ec5014ac40ccfd8d6d
This commit is contained in:
Russell Bryant
2011-12-16 09:19:39 -05:00
parent 041c3a2728
commit f58589a4f3
2 changed files with 4 additions and 0 deletions

View File

@@ -118,6 +118,7 @@ Ricardo Carrillo Cruz <emaildericky@gmail.com>
Rick Clark <rick@openstack.org>
Rick Harris <rconradharris@gmail.com>
Rob Kost <kost@isi.edu>
Russell Bryant <rbryant@redhat.com>
Ryan Lane <rlane@wikimedia.org>
Ryan Lucio <rlucio@internap.com>
Ryu Ishimoto <ryu@midokura.jp>

View File

@@ -169,6 +169,9 @@ def execute(*cmd, **kwargs):
:raises exception.Error on receiving unknown arguments
:raises exception.ProcessExecutionError
:returns a tuple, (stdout, stderr) from the spawned process, or None if
the command fails.
"""
process_input = kwargs.pop('process_input', None)