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
This commit is contained in:
Simon Pasquier 2013-09-04 16:12:08 +02:00
parent 9a46d0a330
commit fceff8b965

View File

@ -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))