Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FumingZhang committed Jul 30, 2024
1 parent 35f5fde commit e5f79ee
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 e5f79ee

Please sign in to comment.