Skip to content

Commit 752484c

Browse files
Update src/azure-cli/azure/cli/command_modules/rdbms/flexible_server_custom_postgres.py
Co-authored-by: Copilot <[email protected]>
1 parent 2d1bdee commit 752484c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/azure-cli/azure/cli/command_modules/rdbms/flexible_server_custom_postgres.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1747,7 +1747,7 @@ def autonomous_tuning_update(cmd, client, resource_group_name, server_name, auto
17471747
postgres_source_client = get_postgresql_flexible_management_client(cmd.cli_ctx, subscription)
17481748
source_server_object = postgres_source_client.servers.get(resource_group_name, server_name)
17491749
location = ''.join(source_server_object.location.lower().split())
1750-
list_location_capability_info = get_postgres_location_capability_info(cmd, location)
1750+
list_location_capability_info = get_postgres_location_capability_info(cmd, location, is_offer_restriction_check_required=True)
17511751
autonomous_tuning_supported = list_location_capability_info['autonomous_tuning_supported']
17521752
if not autonomous_tuning_supported:
17531753
raise CLIError("Autonomous tuning is not supported for the server.")

0 commit comments

Comments
 (0)