Skip to content

Commit

Permalink
Fix typo so setting volume_tmp_dir works
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
dims authored and vishvananda committed Nov 21, 2012
1 parent 197398f commit c2a9150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nova/volume/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ def copy_image_to_volume(self, context, volume, image_service, image_id):
# 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:
Expand Down

0 comments on commit c2a9150

Please sign in to comment.