commit 4abd0cd791a295f4fcfd0a5bf4ded6d3757f2d30
Author: Steven Hardy <email address hidden>
Date: Fri Oct 7 18:08:07 2016 +0100
Allow referencing rendered yaml files in resource_registry
For backwards compatibility we need a fallback when an environment
file references a file that's *.j2.yaml in the user --templates dir
but it's rendered via the plan generation and is then downloaded
to the local temporary tree. In this case we've got to rewrite
the paths in the resource_registry values to point to the new tree
where the rendered templates exist.
Without this logic, some environment files (such as those enabling
swap for all roles) no longer work, so it's a backwards compatibility
workaround.
Reviewed: https:/ /review. openstack. org/383829 /git.openstack. org/cgit/ openstack/ python- tripleoclient/ commit/ ?id=4abd0cd791a 295f4fcfd0a5bf4 ded6d3757f2d30
Committed: https:/
Submitter: Jenkins
Branch: master
commit 4abd0cd791a295f 4fcfd0a5bf4ded6 d3757f2d30
Author: Steven Hardy <email address hidden>
Date: Fri Oct 7 18:08:07 2016 +0100
Allow referencing rendered yaml files in resource_registry
For backwards compatibility we need a fallback when an environment
file references a file that's *.j2.yaml in the user --templates dir
but it's rendered via the plan generation and is then downloaded
to the local temporary tree. In this case we've got to rewrite
the paths in the resource_registry values to point to the new tree
where the rendered templates exist.
Without this logic, some environment files (such as those enabling
swap for all roles) no longer work, so it's a backwards compatibility
workaround.
Change-Id: I560784dc498421 13563f617b34370 2bb045fca76
Closes-Bug: #1625783