Skip to content

Commit 51a187b

Browse files
committed
Fix cloudformation exmple python parser
1 parent 59ebb26 commit 51a187b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

examples/aws_sam_ddb/scripts/setup_local_dynamodb.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ import json
2424
2525
class SafeLoaderIgnoreUnknown(yaml.SafeLoader):
2626
def ignore_unknown(self, node):
27-
return None
27+
if isinstance(node.value, str):
28+
return node.value
29+
else:
30+
return None
2831
2932
class FindInMapLoader(SafeLoaderIgnoreUnknown):
3033
def list_map(self, keys):

0 commit comments

Comments
 (0)