We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 019be0b commit fb51370Copy full SHA for fb51370
samcli/lib/sync/flows/function_sync_flow.py
@@ -109,7 +109,7 @@ def gather_dependencies(self) -> List[SyncFlow]:
109
raise FunctionNotFound(f"Unable to find function {self._function_identifier}")
110
111
auto_publish_alias_name = function_resource.get("Properties", dict()).get("AutoPublishAlias", None)
112
- auto_delete_old_alias = function_resource.get("Properties", dict()).get("AutoDeleteOldAlias", False)
+ auto_delete_old_alias = function_resource.get("Metadata", dict()).get("AutoDeleteOldAlias", False)
113
if auto_publish_alias_name:
114
sync_flows.append(
115
AliasVersionSyncFlow(
0 commit comments