Skip to content

Commit

Permalink
fixed the error type
Browse files Browse the repository at this point in the history
  • Loading branch information
liakaz committed Jun 7, 2021
1 parent 58bcaa9 commit 5a241b2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import azure.mgmt.storage.models
import azure.mgmt.loganalytics
import azure.mgmt.loganalytics.models
from azure.cli.core.azclierror import InvalidArgumentValueError
from azure.cli.core.azclierror import InvalidArgumentValueError, MutuallyExclusiveArgumentError
from azure.cli.core.commands.client_factory import get_mgmt_service_client, get_subscription_id
from azure.mgmt.resource.locks.models import ManagementLockObject
from knack.log import get_logger
Expand Down Expand Up @@ -224,7 +224,7 @@ def __validate_scoring_fe_settings(self, configuration_settings, configuration_p
feIsInternalLoadBalancer = str(feIsInternalLoadBalancer).lower() == 'true'

if feIsNodePort and feIsInternalLoadBalancer:
raise InvalidArgumentValueError(
raise MutuallyExclusiveArgumentError(
"Specify either privateEndpointNodeport=true or privateEndpointILB=true, but not both.")
elif feIsNodePort:
configuration_settings['scoringFe.serviceType.nodePort'] = feIsNodePort
Expand Down

0 comments on commit 5a241b2

Please sign in to comment.