Skip to content

Commit

Permalink
Fetch AutoDeleteOldAlias from Metadata instead of Properties
Browse files Browse the repository at this point in the history
  • Loading branch information
driverpt committed Nov 1, 2024
1 parent 2c1aa25 commit 0826cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samcli/lib/sync/flows/function_sync_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def gather_dependencies(self) -> List[SyncFlow]:
raise FunctionNotFound(f"Unable to find function {self._function_identifier}")

auto_publish_alias_name = function_resource.get("Properties", dict()).get("AutoPublishAlias", None)
auto_delete_old_alias = function_resource.get("Properties", dict()).get("AutoDeleteOldAlias", False)
auto_delete_old_alias = function_resource.get("Metadata", dict()).get("AutoDeleteOldAlias", False)
if auto_publish_alias_name:
sync_flows.append(
AliasVersionSyncFlow(
Expand Down

0 comments on commit 0826cfa

Please sign in to comment.