From fceff8b9651e3e43c72be679448802111a17d17c Mon Sep 17 00:00:00 2001 From: Simon Pasquier Date: Wed, 4 Sep 2013 16:12:08 +0200 Subject: [PATCH] Fix AttributeError exception in autoscaling Use the nested() method instead of directly accessing the _nested attribute which isn't always initialized. Fixes bug #1220737 Change-Id: I9f36d98e91d5175b354e423d7159e690b1e5b696 --- heat/engine/resources/autoscaling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/heat/engine/resources/autoscaling.py b/heat/engine/resources/autoscaling.py index 12f79127..68eaeb3a 100644 --- a/heat/engine/resources/autoscaling.py +++ b/heat/engine/resources/autoscaling.py @@ -258,7 +258,7 @@ class InstanceGroup(stack_resource.StackResource): ''' if name == 'InstanceList': ips = [inst.FnGetAtt('PublicIp') - for inst in self._nested.resources.values()] + for inst in self.nested().resources.values()] if ips: return unicode(','.join(ips)) -- 2.45.2