-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Using az containerapp hostname bind
without validation-method throws AttributeError
#6480
Comments
Thank you for opening this issue, we will look into it. |
I have raised #6481 |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @calvinsID. Issue DetailsDescribe the bugWhen using The method There should be a check and Related command
Errors
Issue script & Debug output
Debug log not needed Expected behaviorA
Environment Summary
Additional contextI will raise a PR to fix, feel free to assign it to me
|
Adding Service team to look into this. |
Describe the bug
When using
az containerapp hostname bind
, the command fails without the--validation-method
inputThe method
bind_hostname
here https://github.com/Azure/azure-cli-extensions/blob/main/src/containerapp/azext_containerapp/custom.py#L4419 has a default value ofNone
but.upper()
is called https://github.com/Azure/azure-cli-extensions/blob/main/src/containerapp/azext_containerapp/custom.py#L4463There should be a check and
RequiredArgumentMissingError
raised before it is usedRelated command
az containerapp hostname bind --hostname something.test.net -g MY-GROUP -n my-container-app -e my-container-app-env
Errors
Issue script & Debug output
az containerapp hostname bind --hostname something.test.net -g MY-GROUP -n my-container-app -e my-container-app-env --debug
Debug log not needed
Expected behavior
A
RequiredArgumentMissingError
should be raised so the command exists cleanly in error state with the correct information for a user to correct the issue.raise RequiredArgumentMissingError('Please specify the parameter: --validation-method')
Environment Summary
Additional context
I will raise a PR to fix, feel free to assign it to me
The text was updated successfully, but these errors were encountered: