diff options
-rw-r--r-- | nova/volume/driver.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/volume/driver.py b/nova/volume/driver.py index 07bbbde6c..44e688161 100644 --- a/nova/volume/driver.py +++ b/nova/volume/driver.py @@ -788,7 +788,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 CONF.volume_tmp_dir and not os.exists(CONF.volume_tmp_dir): + if CONF.volume_tmp_dir and not os.path.exists(CONF.volume_tmp_dir): os.makedirs(CONF.volume_tmp_dir) with tempfile.NamedTemporaryFile(dir=CONF.volume_tmp_dir) as tmp: |