From c91b8d53f2597b3626c78037e9f3df52d9a19ca7 Mon Sep 17 00:00:00 2001 From: Angus Salkeld Date: Mon, 23 Jul 2012 14:48:29 +1000 Subject: [PATCH] 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 --- heat/engine/autoscaling.py | 3 +++ 1 file changed, 3 insertions(+) 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', -- 2.45.2