Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,10 @@ def _deployed_property_value_of(
property_value: Any | None = get_value_from_path(properties, property_name)

if property_value:
if not isinstance(property_value, (str, list)):
# TODO: is this correct? If there is a bug in the logic here, it's probably
# better to know about it with a clear error message than to receive some form
# of message about trying to use a dictionary in place of a string
if not isinstance(property_value, (str, list, dict)):
# Str: Standard expected type. TODO validate bools and numbers
# List: Multiple resource types can return a list of values e.g. AWS::EC2::VPC.
# Dict: Custom resources in CloudFormation can return arbitrary data structures.
raise RuntimeError(
f"Accessing property '{property_name}' from '{resource_logical_id}' resulted in a non-string value nor list"
)
Expand Down
Loading