Skip to content

Commit

Permalink
fix: Fix availability dip in PropagateTags property (#3316)
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinZZ committed Aug 22, 2023
1 parent e3e2e26 commit e323efc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samtranslator/plugins/api/implicit_api_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def _add_tags_to_implicit_api_if_necessary(
return

implicit_api_resource = template.get(self.IMPLICIT_API_LOGICAL_ID)
globals_var = template.get_globals().get(SamResourceType(resource.type).name, {})
globals_var = template.get_globals().get(SamResourceType(resource.type).name) or {}
should_propagate_tags = resource.properties.get("PropagateTags") or globals_var.get("PropagateTags")
tags_properties = resource.properties.get("Tags") or globals_var.get("Tags")

Expand Down

0 comments on commit e323efc

Please sign in to comment.