Skip to content

Commit d61f59d

Browse files
committed
comment type validation
1 parent fb3ae56 commit d61f59d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

localstack-core/localstack/services/cloudformation/engine/v2/change_set_model_preproc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,9 @@ def _deployed_property_value_of(
275275

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

0 commit comments

Comments
 (0)