Skip to content

Commit 0826cfa

Browse files
committedNov 1, 2024
Fetch AutoDeleteOldAlias from Metadata instead of Properties
1 parent 2c1aa25 commit 0826cfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎samcli/lib/sync/flows/function_sync_flow.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def gather_dependencies(self) -> List[SyncFlow]:
109109
raise FunctionNotFound(f"Unable to find function {self._function_identifier}")
110110

111111
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)
112+
auto_delete_old_alias = function_resource.get("Metadata", dict()).get("AutoDeleteOldAlias", False)
113113
if auto_publish_alias_name:
114114
sync_flows.append(
115115
AliasVersionSyncFlow(

0 commit comments

Comments
 (0)
Failed to load comments.