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