summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2011-04-18 19:01:16 +0000
committerTarmac <>2011-04-18 19:01:16 +0000
commit80bc903ae5bf9f7b29d33113fdf475331370f8b2 (patch)
treeb385b3112a98747e4142727099c5cb1fdaeef249 /bin
parent03840792687b915d9ffdced12f415b3d093b40b2 (diff)
parent73215aa7fd31e54c84220bb852f98559a63bb17d (diff)
Fixes nova-manage image convert when the source directory is the same one that local image service uses.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/nova-manage2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/nova-manage b/bin/nova-manage
index adc631318..297fd8667 100755
--- a/bin/nova-manage
+++ b/bin/nova-manage
@@ -1009,7 +1009,7 @@ class ImageCommands(object):
if (FLAGS.image_service == 'nova.image.local.LocalImageService'
and directory == os.path.abspath(FLAGS.images_path)):
new_dir = "%s_bak" % directory
- os.move(directory, new_dir)
+ os.rename(directory, new_dir)
os.mkdir(directory)
directory = new_dir
for fn in glob.glob("%s/*/info.json" % directory):