]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Return the name from the autoscaling group not the instance.
authorAngus Salkeld <asalkeld@redhat.com>
Mon, 23 Jul 2012 04:48:29 +0000 (14:48 +1000)
committerAngus Salkeld <asalkeld@redhat.com>
Mon, 23 Jul 2012 04:48:29 +0000 (14:48 +1000)
the default is to return an instance_id if it is  not none.

Change-Id: Ide5dcb3da5d992683dd235f1b53b264455a9fd07
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
heat/engine/autoscaling.py

index 5fe21fb5c12a3ffb86fb1f91e36175af8fa9a372..7389d9b559d59e57156f2ec7438dcf6727f3b351 100644 (file)
@@ -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',