Skip to content

Commit

Permalink
Merge pull request #436 from dgraeber/fix/param-resolution
Browse files Browse the repository at this point in the history
fix param resolution
  • Loading branch information
dgraeber authored Oct 23, 2023
2 parents 2d13269 + 73cdf6f commit 8afc8d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a Ch

### Fixes
- corecting urllib hard dependency version
- global and regional param resolution should usse account_alias instead of account_id

## v2.10.3 (2023-09-22)

Expand Down
2 changes: 1 addition & 1 deletion seedfarmer/commands/_parameter_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def load_parameter_values(
)
elif parameter.value_from.parameter_value:
p_value = deployment_manifest.get_parameter_value(
parameter=parameter.value_from.parameter_value, account_id=target_account, region=target_region
parameter=parameter.value_from.parameter_value, account_alias=target_account, region=target_region
)
if p_value is not None:
p_value = str(p_value) if isinstance(p_value, str) else json.dumps(p_value)
Expand Down
2 changes: 1 addition & 1 deletion test/unit-test/test_commands_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def test_load_parameter_values(session_manager, mocker):
deployment_name="mlops",
deployment_manifest=dep,
parameters=dep.groups[1].modules[0].parameters,
target_account="123456789012",
target_account="primary",
target_region="us-east-1",
)
names = []
Expand Down

0 comments on commit 8afc8d1

Please sign in to comment.