Skip to content

Commit

Permalink
fix(profile-resolve):handle unspecified aggregate parameters
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Davie <mldavie@amazon.com>
  • Loading branch information
michaeldavie-amzn committed Sep 24, 2024
1 parent 25dbc7a commit 01ccf05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trestle/core/control_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,8 @@ def _param_values_assignment_str(
param_str = ControlInterface._param_selection_as_str(param, True, False)
# otherwise use param aggregated values if present
if not param_str:
param_str = ControlInterface._param_as_aggregated_value(param, param_dict, True, False)
if any(as_list(param_dict[prop.value].values) for prop in as_list(param.props) if prop.value in param_dict):
param_str = ControlInterface._param_as_aggregated_value(param, param_dict, True, False)
# finally use label and param_id as fallbacks
if not param_str:
param_str = param.label if param.label else param.id
Expand Down

0 comments on commit 01ccf05

Please sign in to comment.