From 0d4e6dbe6f17d0a8d0f93833c1ea70f79944d945 Mon Sep 17 00:00:00 2001 From: Michael Still Date: Tue, 23 Oct 2012 14:25:25 -0700 Subject: Migrate to fileutils and lockutils. Migrate nova to using openstack-common's file and lock utilities. Resolves bug 1063230. Change-Id: I1a4c87856bc08cd33b61d7098ed856baa4583654 --- nova/api/openstack/compute/contrib/cloudpipe.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nova/api') 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""" -- cgit