Skip to content

Commit 36b2f19

Browse files
authored
Fix resolve intrinsic function use in first parameter (#336)
**Why?** A bug prevented the use of the `resolve:` intrinsic function on the first parameter in in the first parameter file. **What?** The parameters were initialized as an empty dictionary. While reading a file that does not exist would return a predefined object instead. The fix uses the later instead of an empty dictionary.
1 parent 3aa1d4b commit 36b2f19

File tree

1 file changed

+1
-1
lines changed
  • src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared

1 file changed

+1
-1
lines changed

src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/generate_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def _is_account_id(value):
6262
def create_parameter_files(self):
6363
for account, ou in self.account_ous.items():
6464
for region in self.regions:
65-
compare_params = {}
65+
compare_params = {'Parameters': {}, 'Tags': {}}
6666
compare_params = self._param_updater(
6767
Parameters._parse("{0}/params/{1}".format(self.cwd, "{0}_{1}".format(account, region))),
6868
compare_params,

0 commit comments

Comments
 (0)