Func NewWorkspace returns proper go zero-values for each function parameter that is empty.
This PR fixes unintended changes in the behavior of func NewWorkspace due to #1102 and causes the function to keep the principle of least confusion:
1102 changed the values which are returned in case the function parameters terraformTemplates, importParameterMappings, parametersToRemove and parametersToAdd are empty. This PR reverts this behaviour and keeps backwards-compability
fixes failed tests in #1102
reverts #1114
Checklist:
[x] Have you added or updated tests to validate the changed functionality?
[ ] Have you added Release Notes in the docs repositories?
Func NewWorkspace returns proper go zero-values for each function parameter that is empty.
This PR fixes unintended changes in the behavior of func NewWorkspace due to #1102 and causes the function to keep the principle of least confusion:
1102 changed the values which are returned in case the function parameters
terraformTemplates
,importParameterMappings
,parametersToRemove
andparametersToAdd
are empty. This PR reverts this behaviour and keeps backwards-compabilityChecklist: