summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorMichael Still <mikal@stillhq.com>2012-10-23 14:25:25 -0700
committerMichael Still <mikal@stillhq.com>2012-10-25 09:20:46 +1100
commit0d4e6dbe6f17d0a8d0f93833c1ea70f79944d945 (patch)
treecdd80ba89da8567c5e1abc82a0ede862d6dd578d /nova/api
parent86b91474d16fb9842bb75dc7ebd1af364cc8a058 (diff)
downloadnova-0d4e6dbe6f17d0a8d0f93833c1ea70f79944d945.tar.gz
nova-0d4e6dbe6f17d0a8d0f93833c1ea70f79944d945.tar.xz
nova-0d4e6dbe6f17d0a8d0f93833c1ea70f79944d945.zip
Migrate to fileutils and lockutils.
Migrate nova to using openstack-common's file and lock utilities. Resolves bug 1063230. Change-Id: I1a4c87856bc08cd33b61d7098ed856baa4583654
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/compute/contrib/cloudpipe.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/api/openstack/compute/contrib/cloudpipe.py b/nova/api/openstack/compute/contrib/cloudpipe.py
index 48b641348..afc24b95d 100644
--- a/nova/api/openstack/compute/contrib/cloudpipe.py
+++ b/nova/api/openstack/compute/contrib/cloudpipe.py
@@ -25,6 +25,7 @@ from nova import db
from nova import exception
from nova import flags
from nova import network
+from nova.openstack.common import fileutils
from nova.openstack.common import log as logging
from nova.openstack.common import timeutils
from nova import utils
@@ -69,7 +70,7 @@ class CloudpipeController(object):
# NOTE(vish): One of the drawbacks of doing this in the api is
# the keys will only be on the api node that launched
# the cloudpipe.
- utils.ensure_tree(FLAGS.keys_path)
+ fileutils.ensure_tree(FLAGS.keys_path)
def _get_all_cloudpipes(self, context):
"""Get all cloudpipes"""