From c2a915021f06382a0dc22c9d089fa5dfef8447ec Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Wed, 7 Nov 2012 20:21:55 -0500 Subject: [PATCH] Fix typo so setting volume_tmp_dir works apply the same change that was applied to cinder https://review.openstack.org/#/c/14863/ Fixes LP bug #1071536 Change-Id: I4cfdb38debfcb4a890c2d7fd7405ac9dc755f0ec (cherry picked from commit 3f1af292f4771a384230ec80c32f2d253cef8bc1) --- nova/volume/driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/volume/driver.py b/nova/volume/driver.py index 0149bea93329..fda127d8f921 100644 --- a/nova/volume/driver.py +++ b/nova/volume/driver.py @@ -845,7 +845,7 @@ class RBDDriver(VolumeDriver): # TODO(jdurgin): replace with librbd # this is a temporary hack, since rewriting this driver # to use librbd would take too long - if FLAGS.volume_tmp_dir and not os.exists(FLAGS.volume_tmp_dir): + if FLAGS.volume_tmp_dir and not os.path.exists(FLAGS.volume_tmp_dir): os.makedirs(FLAGS.volume_tmp_dir) with tempfile.NamedTemporaryFile(dir=FLAGS.volume_tmp_dir) as tmp: