Skip to content

Commit 473f82f

Browse files
committed
add fix
1 parent 7335c68 commit 473f82f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,8 @@ def flexible_server_update_custom_func(cmd, client, instance,
473473
if high_availability.lower() != "disabled" and standby_availability_zone:
474474
high_availability_param.standby_availability_zone = standby_availability_zone
475475

476-
if high_availability.lower() != "disabled":
476+
# PG 11 and 12 will never receive fabric mirroring support. Skip this check for servers of these versions
477+
if high_availability.lower() != "disabled" and str(instance.version) not in ["11", "12"]:
477478
config_client = cf_postgres_flexible_config(cmd.cli_ctx, '_')
478479
fabric_mirror_status = config_client.get(resource_group_name, server_name, 'azure.fabric_mirror_enabled')
479480
if (fabric_mirror_status and fabric_mirror_status.value.lower() == 'on'):

0 commit comments

Comments
 (0)