From: Simon Pasquier Date: Wed, 4 Sep 2013 14:12:08 +0000 (+0200) Subject: Fix AttributeError exception in autoscaling X-Git-Tag: 2014.1~74 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=fceff8b9651e3e43c72be679448802111a17d17c;p=openstack-build%2Fheat-build.git 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 --- 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))