From a73334b47a88e6b1c0f33db5312edd49d50c097b Mon Sep 17 00:00:00 2001 From: Michael Still Date: Mon, 27 Aug 2012 13:17:36 +1000 Subject: Port existing code to utils.ensure_tree Now that we have ensure_tree in utils, port most users of os.makedirs() to use it. Change-Id: I3256cbb76bd889f99f1e6f3367bd620645f828a1 --- nova/api/openstack/compute/contrib/cloudpipe.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'nova/api') diff --git a/nova/api/openstack/compute/contrib/cloudpipe.py b/nova/api/openstack/compute/contrib/cloudpipe.py index 9b2bb3e61..42721c1a6 100644 --- a/nova/api/openstack/compute/contrib/cloudpipe.py +++ b/nova/api/openstack/compute/contrib/cloudpipe.py @@ -65,8 +65,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. - if not os.path.exists(FLAGS.keys_path): - os.makedirs(FLAGS.keys_path) + utils.ensure_tree(FLAGS.keys_path) def _get_all_cloudpipes(self, context): """Get all cloudpipes""" -- cgit