Skip to content

Commit

Permalink
fix: pseudo stacks (#247)
Browse files Browse the repository at this point in the history
* fix: pseudo stacks

Ensure Azure specific outputs are appended to any that are already in
the state.

With the shared provider looking after pseudo stacks, their content
will already be in the state when the Azure normaliser runs.

* fix: use known behaviour for state combination
  • Loading branch information
ml019 committed Apr 9, 2021
1 parent f534cef commit 7575b82
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion azure/inputseeders/azure/id.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@
[/#function]

[#-- Normalise arm stack files to state point sets --]
[#-- Note that pseudo stacks use the aws format and are handled via the shared provider --]
[#function azure_configtransformer_normalise filter state]

[#if filterAttributeContainsValue(filter, "Provider", AZURE_PROVIDER) ]
Expand Down Expand Up @@ -397,12 +398,15 @@
[/#if]
[/#list]

[#-- Append so as not to loose previously normalised stack info --]
[#if stackFiles?has_content]
[#return
addToConfigPipelineClass(
state,
STATE_CONFIG_INPUT_CLASS,
pointSets
pointSets,
"",
APPEND_COMBINE_BEHAVIOUR
)
]
[/#if]
Expand Down

0 comments on commit 7575b82

Please sign in to comment.