summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Waldon <brian.waldon@rackspace.com>2011-06-10 10:12:57 -0400
committerBrian Waldon <brian.waldon@rackspace.com>2011-06-10 10:12:57 -0400
commit8cc17d57a9645c9bed6eebe5d6b3bbc3ffdea13e (patch)
tree1b068efe2053bd3b4e5f8aa8dadd08a620450cad
parent249279cd7c70a7306ed28a62939477ef94ecbc91 (diff)
downloadnova-8cc17d57a9645c9bed6eebe5d6b3bbc3ffdea13e.tar.gz
nova-8cc17d57a9645c9bed6eebe5d6b3bbc3ffdea13e.tar.xz
nova-8cc17d57a9645c9bed6eebe5d6b3bbc3ffdea13e.zip
removing LocalImageService from nova-manage
-rwxr-xr-xbin/nova-manage11
1 files changed, 0 insertions, 11 deletions
diff --git a/bin/nova-manage b/bin/nova-manage
index b0cd343f5..0bfc63bd9 100755
--- a/bin/nova-manage
+++ b/bin/nova-manage
@@ -96,7 +96,6 @@ flags.DECLARE('network_size', 'nova.network.manager')
flags.DECLARE('vlan_start', 'nova.network.manager')
flags.DECLARE('vpn_start', 'nova.network.manager')
flags.DECLARE('fixed_range_v6', 'nova.network.manager')
-flags.DECLARE('images_path', 'nova.image.local')
flags.DECLARE('libvirt_type', 'nova.virt.libvirt.connection')
flags.DEFINE_flag(flags.HelpFlag())
flags.DEFINE_flag(flags.HelpshortFlag())
@@ -1055,16 +1054,6 @@ class ImageCommands(object):
machine_images = {}
other_images = {}
directory = os.path.abspath(directory)
- # NOTE(vish): If we're importing from the images path dir, attempt
- # to move the files out of the way before importing
- # so we aren't writing to the same directory. This
- # may fail if the dir was a mointpoint.
- if (FLAGS.image_service == 'nova.image.local.LocalImageService'
- and directory == os.path.abspath(FLAGS.images_path)):
- new_dir = "%s_bak" % directory
- os.rename(directory, new_dir)
- os.mkdir(directory)
- directory = new_dir
for fn in glob.glob("%s/*/info.json" % directory):
try:
image_path = os.path.join(fn.rpartition('/')[0], 'image')