Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/azure-cli-core/azure/cli/core/aaz/_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# from azure.core.exceptions import ResourceExistsError, ResourceNotFoundError
from azure.cli.core.azclierror import UserFault

from ._base import has_value
from .exceptions import AAZUnknownFieldError


Expand Down Expand Up @@ -55,6 +54,4 @@ def set(self, value):

def required(self):
value = self.get()
if not has_value(value):
raise UserFault("ResourceNotFoundError")
return value
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after change what's the difference between required and get? I think the correct way is fix the generated code which use required() to get()