From: Angus Salkeld Date: Mon, 23 Jul 2012 04:48:29 +0000 (+1000) Subject: Return the name from the autoscaling group not the instance. X-Git-Tag: 2014.1~1573 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=c91b8d53f2597b3626c78037e9f3df52d9a19ca7;p=openstack-build%2Fheat-build.git Return the name from the autoscaling group not the instance. the default is to return an instance_id if it is not none. Change-Id: Ide5dcb3da5d992683dd235f1b53b264455a9fd07 Signed-off-by: Angus Salkeld --- diff --git a/heat/engine/autoscaling.py b/heat/engine/autoscaling.py index 5fe21fb5..7389d9b5 100644 --- a/heat/engine/autoscaling.py +++ b/heat/engine/autoscaling.py @@ -139,6 +139,9 @@ class AutoScalingGroup(Resource): for lb in self.properties['LoadBalancerNames']: self.stack[lb].reload(id_list) + def FnGetRefId(self): + return unicode(self.name) + class LaunchConfiguration(Resource): tags_schema = {'Key': {'Type': 'String',