deb-heat/heat/engine/cfn
Zane Bitter a69431ab6c Make ResourceDefinition round-trip stable to avoid extra writes
The part of a ResourceDefinition that lists explicit dependencies was not
round-trip stable. As a result, when we copied a new resource definition
into the existing template during a stack update, we would end up rewriting
the template unnecesarily (i.e. even though we check for changes) every
time if depends_on was not specified in the resource originally. At the end
of each update, we write the new template to the DB in its entirety, which
removes these extra lines again, ensuring that we will experience the same
problem on every update. This was causing a *lot* of unnecessary writes.

This change ensures that the definition remains stable across a round-trip,
so that no unnecessary changes appear in the template.

Change-Id: If7292e49755db0153d7d0db9f7d3875fa9c1d408
Closes-Bug: #1494108
2015-09-11 14:27:55 -04:00
..
__init__.py Move built-in functions to separate modules 2014-02-19 00:02:01 -05:00
functions.py Convergence: Resolve attributes during rollback 2015-09-04 06:24:13 +00:00
template.py Make ResourceDefinition round-trip stable to avoid extra writes 2015-09-11 14:27:55 -04:00