From cafde218da299fd5d70ab7b4d4b11ac87c382944 Mon Sep 17 00:00:00 2001 From: "Mai Nguyen (from Dev Box)" Date: Thu, 5 Dec 2024 18:32:26 -0800 Subject: [PATCH] revert polling change --- src/azure-cli/azure/cli/command_modules/acr/agentpool.py | 2 +- .../acr/tests/latest/test_acr_agentpool_commands.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/acr/agentpool.py b/src/azure-cli/azure/cli/command_modules/acr/agentpool.py index a72879b7c42..ce6d2ad7342 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/agentpool.py +++ b/src/azure-cli/azure/cli/command_modules/acr/agentpool.py @@ -90,7 +90,7 @@ def acr_agentpool_delete(cmd, try: response = client.begin_delete(resource_group_name=resource_group_name, registry_name=registry_name, - agent_pool_name=agent_pool_name).result() + agent_pool_name=agent_pool_name) if no_wait: logger.warning("Started to delete the agent pool '%s': %s", agent_pool_name, response.status()) diff --git a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_agentpool_commands.py b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_agentpool_commands.py index 4bb438cb165..2ac9dc8fd4d 100644 --- a/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_agentpool_commands.py +++ b/src/azure-cli/azure/cli/command_modules/acr/tests/latest/test_acr_agentpool_commands.py @@ -3,11 +3,11 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -from azure.cli.testsdk import ScenarioTest, StorageAccountPreparer, ResourceGroupPreparer, record_only - +from azure.cli.testsdk import ScenarioTest, StorageAccountPreparer, ResourceGroupPreparer, record_only, live_only class AcrAgentPoolCommandsTests(ScenarioTest): + @live_only() @ResourceGroupPreparer() def test_acr_agentpool(self, resource_group): # Agentpool prerequisites for agentpool testing