]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Use full distro-arch as name of image registered with glance
authorSteven Dake <sdake@redhat.com>
Wed, 21 Mar 2012 18:32:41 +0000 (11:32 -0700)
committerSteven Dake <sdake@redhat.com>
Wed, 21 Mar 2012 18:32:41 +0000 (11:32 -0700)
Signed-off-by: Steven Dake <sdake@redhat.com>
bin/heat

index ec044d48cb84a2e2b730fe15f1761c45da6dc2f5..fe14eba0daf005da87465da5edc77225d6a4940a 100755 (executable)
--- a/bin/heat
+++ b/bin/heat
@@ -238,7 +238,7 @@ def jeos_create(options, arguments):
     tdl_path = '%s/heat/jeos/%s-%s-gold-jeos.tdl' % (get_python_lib(), distro, arch)
     dsk_filename = '/var/lib/libvirt/images/%s-%s-gold-jeos.dsk' % (distro, arch)
     qcow2_filename = '/var/lib/libvirt/images/%s-%s-gold-jeos.qcow2' % (distro, arch)
-    images_name = '%s-%s' % (distro, arch)
+    image_name = '%s-%s' % (distro, arch)
 
     if not os.access(tdl_path, os.R_OK):
         print 'The tdl for that disto/arch is not available'
@@ -275,7 +275,7 @@ def jeos_create(options, arguments):
         "limit": 10,
     }
 
-    image_meta = {'name': distro,
+    image_meta = {'name': image_name,
                   'is_public': True,
                   'disk_format': 'qcow2',
                   'min_disk': 0,