We already have special processing in place for out-of-tree environment
files and templates, but it didn't handle `get_file` (or `type`)
links. This commit adds that handling.
Heatclient automatically uses absolute `file:///` links when processing
the external environment files and other files referenced from them via
`get_file` or `type`. Because we upload all our environment files and
templates to Swift, such links don't work. We need to use relative links
in `get_file` and `type`.
Change-Id: I009f75cbc6278a0a2ff75e93e1ed44f2c4893783
Closes-Bug: #1631426
(cherry picked from commit 73f30b728656f617db0d8c3f29b0b1bd078b34c9)
Reviewed: https:/ /review. openstack. org/385456 /git.openstack. org/cgit/ openstack/ python- tripleoclient/ commit/ ?id=2ee369f4fb5 997bb289e2cfc1c 884909578c127b
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 2ee369f4fb5997b b289e2cfc1c8849 09578c127b
Author: Jiri Stransky <email address hidden>
Date: Fri Oct 7 18:29:46 2016 +0200
Fix get_file in out-of-tree templates
We already have special processing in place for out-of-tree environment
files and templates, but it didn't handle `get_file` (or `type`)
links. This commit adds that handling.
Heatclient automatically uses absolute `file:///` links when processing
the external environment files and other files referenced from them via
`get_file` or `type`. Because we upload all our environment files and
templates to Swift, such links don't work. We need to use relative links
in `get_file` and `type`.
Change-Id: I009f75cbc6278a 0a2ff75e93e1ed4 4f2c4893783 7db0d8c3f29b0b1 bd078b34c9)
Closes-Bug: #1631426
(cherry picked from commit 73f30b728656f61