diff options
| author | Michael Still <mikal@stillhq.com> | 2012-10-23 14:25:25 -0700 |
|---|---|---|
| committer | Michael Still <mikal@stillhq.com> | 2012-10-25 09:20:46 +1100 |
| commit | 0d4e6dbe6f17d0a8d0f93833c1ea70f79944d945 (patch) | |
| tree | cdd80ba89da8567c5e1abc82a0ede862d6dd578d /nova/cloudpipe | |
| parent | 86b91474d16fb9842bb75dc7ebd1af364cc8a058 (diff) | |
| download | nova-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/cloudpipe')
| -rw-r--r-- | nova/cloudpipe/pipelib.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |
