heat/heat
Zane Bitter 4a3a1ad15b Fix attribute caching in Heat AutoScalingGroup
Attributes for an individual resource in an OS::Heat::AutoScalingGroup can
be retrieved using the attribute name 'resource.<index>'. Because we were
treating the index as a resource name when generating the template, we
would never generate an output in the nested template that referenced the
resource's attribute, so it wouldn't get cached. Since we can't know the
indices ahead of time, the only way to cache these is to do it for all
resources in the group - which is the same data cached by the equivalent
'outputs' attribute.

We also need to take into account both possible forms of syntax:

    [<asg_name>, resource.<index>.<attr_name>, ...]

or:

    [<asg_name>, resource.<index>, <attr_name>, ...]

Change-Id: I1d2898cdd4759b1bb9de1896a40056685e728f44
Closes-Bug: #1737047
Partial-Bug: #1731349
Related-Bug: #1660831
2018-01-19 15:08:10 -05:00
..
api [policy in code] part 6(cfn, cloudwatch) 2017-12-13 10:58:47 +08:00
cloudinit Validate that python3 is ready for loguserdata 2016-08-26 11:49:30 +00:00
cmd Enable mutable config in Heat 2017-05-17 05:25:56 +00:00
common Avoid loading nested stack in some grouputils functions 2018-01-08 18:19:10 -05:00
db Merge "Speed up event listing with nested stacks" 2017-12-06 17:40:25 +00:00
engine Fix attribute caching in Heat AutoScalingGroup 2018-01-19 15:08:10 -05:00
hacking Restrict use of iteritems, iterkeys and itervalues 2016-03-23 10:05:54 +00:00
httpd Add httpd documentation and sample configs 2017-07-07 11:00:06 +05:30
locale Imported Translations from Zanata 2017-12-14 07:37:10 +00:00
objects Merge "Remove unused variable" 2017-12-13 07:28:43 +00:00
policies [policy in code] part 6(cfn, cloudwatch) 2017-12-13 10:58:47 +08:00
rpc Added tags attribute to the template parameter 2017-11-13 15:51:19 +05:30
scaling Refactor CooldownMixin 2017-11-17 17:21:09 +05:30
tests Merge "Fix nested template genearation when attribute path is not string" 2018-01-19 16:13:56 +00:00
__init__.py
version.py