Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-harvey-z3q committed Jun 16, 2024
1 parent d2b9dd5 commit 4624444
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sceptre/plan/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,13 +721,13 @@ def _format_parameters(self, parameters, create=False):
raise InvalidParameterError(
"'use_previous_value' must be a boolean"
)
if (create or not use_previous_value) and initial_value is None:
raise InvalidParameterError(
"'initial_value' is required when creating a new "
"stack or when 'use_previous_value' is false"
)
if create or not use_previous_value:
if isinstance(initial_value, list):
if initial_value is None:
raise InvalidParameterError(
"'initial_value' is required when creating a new "
"stack or when 'use_previous_value' is false"
)
elif isinstance(initial_value, list):
formatted_parameter["ParameterValue"] = ",".join(initial_value)
else:
formatted_parameter["ParameterValue"] = value.get(
Expand Down

0 comments on commit 4624444

Please sign in to comment.