summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorTrey Morris <trey.morris@rackspace.com>2011-06-20 11:23:49 -0500
committerTrey Morris <trey.morris@rackspace.com>2011-06-20 11:23:49 -0500
commit5f8637007e8f8bdb4f27150c2e4d95f031899301 (patch)
tree5de6a75045427237ba471d91bdfc23e69f997df7 /bin
parent9206e7acd9ec1c6ff3a71c826b8ee26c108d3d3e (diff)
parentc2a8d0f1e2e9a25465100128bae4f60b532d16f5 (diff)
another trunk merge
Diffstat (limited to 'bin')
-rwxr-xr-xbin/nova-manage11
1 files changed, 0 insertions, 11 deletions
diff --git a/bin/nova-manage b/bin/nova-manage
index 16b0cd1dd..ec4ce63d3 100755
--- a/bin/nova-manage
+++ b/bin/nova-manage
@@ -97,7 +97,6 @@ flags.DECLARE('vlan_start', 'nova.network.manager')
flags.DECLARE('vpn_start', 'nova.network.manager')
flags.DECLARE('fixed_range_v6', 'nova.network.manager')
flags.DECLARE('gateway_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())
@@ -1083,16 +1082,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')