Skip to content

Commit

Permalink
{AKS} Fix enum check in test (#29517)
Browse files Browse the repository at this point in the history
  • Loading branch information
FumingZhang authored Aug 1, 2024
1 parent 2956483 commit d3d7dea
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/azure-cli/azure/cli/command_modules/acs/base_decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ def validate_decorator_mode(decorator_mode) -> bool:
:return: bool
"""
is_valid_decorator_mode = False
try:

if isinstance(decorator_mode, DecoratorMode):
is_valid_decorator_mode = decorator_mode in DecoratorMode
# will raise TypeError in Python >= 3.8
except TypeError:
pass

return is_valid_decorator_mode

Expand Down

0 comments on commit d3d7dea

Please sign in to comment.