diff options
| author | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-04-18 19:01:16 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-04-18 19:01:16 +0000 |
| commit | 80bc903ae5bf9f7b29d33113fdf475331370f8b2 (patch) | |
| tree | b385b3112a98747e4142727099c5cb1fdaeef249 /bin | |
| parent | 03840792687b915d9ffdced12f415b3d093b40b2 (diff) | |
| parent | 73215aa7fd31e54c84220bb852f98559a63bb17d (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-x | bin/nova-manage | 2 |
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): |
