diff options
author | Jenkins <jenkins@review.openstack.org> | 2012-11-12 20:06:15 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2012-11-12 20:06:15 +0000 |
commit | aa6adfbbfc9802c07a74a83864e7408e7e19d202 (patch) | |
tree | aa1f001bd654fab47eb4b94b0fe96d880763a739 | |
parent | 7891d6c792552a4e6e233b109ef526c00f39961a (diff) | |
parent | c4b1a647dece73471a7b81e0d818fc34d280a6c8 (diff) | |
download | nova-aa6adfbbfc9802c07a74a83864e7408e7e19d202.tar.gz nova-aa6adfbbfc9802c07a74a83864e7408e7e19d202.tar.xz nova-aa6adfbbfc9802c07a74a83864e7408e7e19d202.zip |
Merge "Fix misuse of exists()"
-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: |