diff options
| author | Rick Harris <rick.harris@rackspace.com> | 2011-06-17 22:06:48 +0000 |
|---|---|---|
| committer | Rick Harris <rick.harris@rackspace.com> | 2011-06-17 22:06:48 +0000 |
| commit | d20ade1e866d0e48c0724cd50e92fc84e068505a (patch) | |
| tree | a2c76ca71c596355857cea880e1241c1fd5233ed /bin | |
| parent | 1d815c177df76eb4f497a67fbdbd58fb170ca880 (diff) | |
| parent | a854d4e17214269b729777967e028600fdf4ee50 (diff) | |
Merging trunk
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/nova-manage | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/bin/nova-manage b/bin/nova-manage index 0147ae21b..dbdb798a7 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()) @@ -1056,16 +1055,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') |
