Skip to content

Commit 5970c72

Browse files
moreOver0Li Ma
authored andcommitted
Update _validators.py
1 parent 151e874 commit 5970c72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/azure-cli/azure/cli/command_modules/acs/_validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,4 +880,4 @@ def validate_gateway_prefix_size(namespace):
880880
if not hasattr(namespace, 'mode') or namespace.mode != CONST_NODEPOOL_MODE_GATEWAY:
881881
raise ArgumentUsageError("--gateway-prefix-size can only be set for Gateway-mode nodepools")
882882
if namespace.gateway_prefix_size < 28 or namespace.gateway_prefix_size > 31:
883-
raise CLIError("--gateway-prefix-size must be in the range [28, 31]")
883+
raise InvalidArgumentValueError("--gateway-prefix-size must be in the range [28, 31]")

0 commit comments

Comments
 (0)