diff options
author | Michael Still <mikal@stillhq.com> | 2013-05-03 10:47:39 +1000 |
---|---|---|
committer | Michael Still <mikal@stillhq.com> | 2013-05-04 15:17:40 +1000 |
commit | 1a11790f2d26ec92858a3ffa100388310912fae1 (patch) | |
tree | 8e49c5f13ae91135d66b2d5b270d04ade15fc606 /nova/tests/fake_utils.py | |
parent | 45c07fcb7ba5434d84803442497cd6bb47284dcf (diff) | |
download | nova-1a11790f2d26ec92858a3ffa100388310912fae1.tar.gz |
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/tests/fake_utils.py')
-rw-r--r-- | nova/tests/fake_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/tests/fake_utils.py b/nova/tests/fake_utils.py index 08a84e73ff..6a295b43b2 100644 --- a/nova/tests/fake_utils.py +++ b/nova/tests/fake_utils.py @@ -20,8 +20,8 @@ import re from eventlet import greenthread -from nova import exception from nova.openstack.common import log as logging +from nova.openstack.common import processutils from nova import utils LOG = logging.getLogger(__name__) @@ -92,7 +92,7 @@ def fake_execute(*cmd_parts, **kwargs): attempts=attempts, run_as_root=run_as_root, check_exit_code=check_exit_code) - except exception.ProcessExecutionError as e: + except processutils.ProcessExecutionError as e: LOG.debug(_('Faked command raised an exception %s'), e) raise |