Skip to content

Commit d881f70

Browse files
parsnipskddejong
andauthored
Use get to safely pull readOnlyProperties. (#3141)
Co-authored-by: Kevin DeJong <[email protected]>
1 parent 5142c3c commit d881f70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cfnlint/template/template.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def build_output_string(resource_type, property_name):
423423
for schema in cfnlint.helpers.REGISTRY_SCHEMAS:
424424
if value["Type"] == schema["typeName"]:
425425
results[name] = {}
426-
for ro_property in schema["readOnlyProperties"]:
426+
for ro_property in schema.get("readOnlyProperties", []):
427427
try:
428428
item = resolve_pointer(schema, ro_property)
429429
except KeyError:

0 commit comments

Comments
 (0)