From 9126f601e681b7f4a9f01c6893692d4957003215 Mon Sep 17 00:00:00 2001 From: necusjz Date: Mon, 31 Mar 2025 16:38:38 +1100 Subject: [PATCH] {CI} Remove unused globals (#31159) --- .../network/azure_stack/zone_file/parse_zone_file.py | 2 -- .../cli/command_modules/network/zone_file/parse_zone_file.py | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/network/azure_stack/zone_file/parse_zone_file.py b/src/azure-cli/azure/cli/command_modules/network/azure_stack/zone_file/parse_zone_file.py index 77c17bb2c5b..a77ed05d246 100644 --- a/src/azure-cli/azure/cli/command_modules/network/azure_stack/zone_file/parse_zone_file.py +++ b/src/azure-cli/azure/cli/command_modules/network/azure_stack/zone_file/parse_zone_file.py @@ -288,8 +288,6 @@ def _add_record_names(text): Go through each line of the text and ensure that a name is defined. Use previous record name if there is none. """ - global SUPPORTED_RECORDS - lines = text.split("\n") ret = [] previous_record_name = None diff --git a/src/azure-cli/azure/cli/command_modules/network/zone_file/parse_zone_file.py b/src/azure-cli/azure/cli/command_modules/network/zone_file/parse_zone_file.py index 5a358b19067..830be1d52b9 100644 --- a/src/azure-cli/azure/cli/command_modules/network/zone_file/parse_zone_file.py +++ b/src/azure-cli/azure/cli/command_modules/network/zone_file/parse_zone_file.py @@ -290,8 +290,6 @@ def _add_record_names(text): Go through each line of the text and ensure that a name is defined. Use previous record name if there is none. """ - global SUPPORTED_RECORDS - lines = text.split("\n") ret = [] previous_record_name = None