From 8693984a9b8b905977b3a21ba946707870216796 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Wed, 21 Mar 2012 11:32:41 -0700 Subject: [PATCH] Use full distro-arch as name of image registered with glance Signed-off-by: Steven Dake --- bin/heat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/heat b/bin/heat index ec044d48..fe14eba0 100755 --- 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, -- 2.45.2