-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ACR] Add a validator for argument 'registry_name' #12685
Conversation
"""Omit login server endpoint suffix.""" | ||
registry = namespace.registry_name | ||
if registry: | ||
suffix = cmd.cli_ctx.cloud.suffixes.acr_login_server_endpoint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems not all clouds define the acr_login_server_endpoint
(AzureGermanCloud), it's better to have an empty check here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the comment! How about suffixes
? Are there any documentation I can refer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AzureGermanCloud is defined here,
suffixes=CloudSuffixes( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's very helpful, thanks a lot!
HI @Wwwsylvia just fyi, next azure CLI release CC date is 3/25 UTC +8, pls help to address comments and let us know when the PR ready for reviewing/merging. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Noted, thanks! |
Resolve #12631
Add a validator for argument 'registry_name' to omit login server endpoint suffix.
The validator applies to all
az acr
commands, exceptaz acr create
andaz acr check-name
.Behavior

(specify registry name with --registry)
(specify login server with --registry)

(specify login server with --name)

History Notes:
(Fill in the following template if multiple notes are needed, otherwise PR title will be used for history note.)
[Component Name 1] (BREAKING CHANGE:) (az command:) make some customer-facing change.
[Component Name 2] (BREAKING CHANGE:) (az command:) make some customer-facing change.
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.