From b0ce1c1f8da096d3cb76c2d97803c39ae6235650 Mon Sep 17 00:00:00 2001 From: Neha Arora Date: Fri, 22 Aug 2025 10:56:42 -0700 Subject: [PATCH] [AKS] `az aks update`: Fix typo on validation error for disabling azurecontainerstorage --- .../command_modules/acs/azurecontainerstorage/_validators.py | 2 +- .../cli/command_modules/acs/tests/latest/test_validators.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/acs/azurecontainerstorage/_validators.py b/src/azure-cli/azure/cli/command_modules/acs/azurecontainerstorage/_validators.py index 8c509985e12..7b2d434b9e5 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/azurecontainerstorage/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/acs/azurecontainerstorage/_validators.py @@ -509,7 +509,7 @@ def validate_disable_azure_container_storage_params( if storage_pool_type is not None and not isinstance(storage_pool_type, bool): raise InvalidArgumentValueError( 'The latest version of Azure Container Storage only supports ephemeral nvme storage and does not ' - 'require or support a storage-pool-type value for --enable-azure-container-storage parameter. ' + 'require or support a storage-pool-type value for --disable-azure-container-storage parameter. ' f'Please remove {storage_pool_type} from the command and try again.' ) diff --git a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_validators.py b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_validators.py index e8723f3a962..0b424089aef 100644 --- a/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_validators.py +++ b/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_validators.py @@ -1588,7 +1588,7 @@ def test_disable_with_storagepool_type_params(self): ) err = ( 'The latest version of Azure Container Storage only supports ephemeral nvme storage and does not ' - 'require or support a storage-pool-type value for --enable-azure-container-storage parameter. ' + 'require or support a storage-pool-type value for --disable-azure-container-storage parameter. ' f'Please remove {storage_pool_type} from the command and try again.' ) self.assertEqual(str(cm.exception), err)