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/cloudpipe/pipelib.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nova/cloudpipe') diff --git a/nova/cloudpipe/pipelib.py b/nova/cloudpipe/pipelib.py index 4e498e2c9..6f4963670 100644 --- a/nova/cloudpipe/pipelib.py +++ b/nova/cloudpipe/pipelib.py @@ -33,6 +33,7 @@ from nova import db from nova import exception from nova import flags from nova.openstack.common import cfg +from nova.openstack.common import fileutils from nova.openstack.common import log as logging from nova import utils @@ -150,7 +151,7 @@ class CloudPipe(object): key_name) private_key = result['private_key'] key_dir = os.path.join(FLAGS.keys_path, context.user_id) - utils.ensure_tree(key_dir) + fileutils.ensure_tree(key_dir) key_path = os.path.join(key_dir, '%s.pem' % key_name) with open(key_path, 'w') as f: f.write(private_key) -- cgit