diff options
| author | Yun Mao <yunmao@gmail.com> | 2012-11-12 14:05:29 -0500 |
|---|---|---|
| committer | Yun Mao <yunmao@gmail.com> | 2012-11-12 14:05:29 -0500 |
| commit | c4b1a647dece73471a7b81e0d818fc34d280a6c8 (patch) | |
| tree | 227244ed545ce15aeab5ddcefa24156d085728bc | |
| parent | 6a63baadae2cb1c99b0e6e107dab9a0f454621fc (diff) | |
| download | nova-c4b1a647dece73471a7b81e0d818fc34d280a6c8.tar.gz nova-c4b1a647dece73471a7b81e0d818fc34d280a6c8.tar.xz nova-c4b1a647dece73471a7b81e0d818fc34d280a6c8.zip | |
Fix misuse of exists()
Should be os.path.exists not os.exists
Part of bug 1078062
Change-Id: I8126c496b3089ab65ce3b8c7fdcd84944b8e259f
| -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: |
