From: Steven Dake Date: Wed, 28 Mar 2012 21:57:48 +0000 (-0700) Subject: Produce proper distro-arch variable for use with launching X-Git-Tag: 2014.1~2133 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=61b54e7b7c2bce91ae66b1267ed780ce4d62dbbc;p=openstack-build%2Fheat-build.git Produce proper distro-arch variable for use with launching Signed-off-by: Steven Dake --- diff --git a/heat/engine/resources.py b/heat/engine/resources.py index 9ff66ea3..198dd4d0 100644 --- a/heat/engine/resources.py +++ b/heat/engine/resources.py @@ -292,9 +292,11 @@ class Instance(Resource): flavor = self.itype_oflavor[self.t['Properties']['InstanceType']] arch_name = self.ami_arch[self.t['Properties']['ImageId']] + distro_name = self.stack.parameter_get('LinuxDistribution') key_name = self.t['Properties']['KeyName'] + image_name = '%s-%s' % (distro_name, arch_name) - print 'Running instance with key %s flavor %s arch %s' % (key_name, flavor, arch_name) + print 'Running instance with key %s flavor %s arch %s' % (key_name, flavor, image_name) self.instance_id = 'i-734509008'