summaryrefslogtreecommitdiff
path: root/nova/tests/fake_utils.py
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/tests/fake_utils.py
parent45c07fcb7ba5434d84803442497cd6bb47284dcf (diff)
downloadnova-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.py4
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