summaryrefslogtreecommitdiffstats
path: root/nova/openstack
diff options
context:
space:
mode:
authorMichael Still <mikal@stillhq.com>2013-05-03 10:47:39 +1000
committerMichael Still <mikal@stillhq.com>2013-05-04 15:17:40 +1000
commit1a11790f2d26ec92858a3ffa100388310912fae1 (patch)
tree8e49c5f13ae91135d66b2d5b270d04ade15fc606 /nova/openstack
parent45c07fcb7ba5434d84803442497cd6bb47284dcf (diff)
downloadnova-1a11790f2d26ec92858a3ffa100388310912fae1.tar.gz
nova-1a11790f2d26ec92858a3ffa100388310912fae1.tar.xz
nova-1a11790f2d26ec92858a3ffa100388310912fae1.zip
Convert to using oslo's execute() method.
There are some small warts (mostly around other execute() like methods which reuse the exception). I will fix these warts in later reviews. Change-Id: Ice9cdbdc5f3e5a9f8365f5d99acf1863a9fe3e7a
Diffstat (limited to 'nova/openstack')
-rw-r--r--nova/openstack/common/processutils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/nova/openstack/common/processutils.py b/nova/openstack/common/processutils.py
index fbd2c6ff2..45a5bf963 100644
--- a/nova/openstack/common/processutils.py
+++ b/nova/openstack/common/processutils.py
@@ -42,6 +42,12 @@ class UnknownArgumentError(Exception):
class ProcessExecutionError(Exception):
def __init__(self, stdout=None, stderr=None, exit_code=None, cmd=None,
description=None):
+ self.exit_code = exit_code
+ self.stderr = stderr
+ self.stdout = stdout
+ self.cmd = cmd
+ self.description = description
+
if description is None:
description = "Unexpected error while running command."
if exit_code is None: