-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[Monitor] az monitor action-group create: Adjust formatting of --actions help message
#29747
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
Conversation
When you concatenate a regular string with a multi-line string using the + operator, the multi-line string loses its formatting and is treated as a single line. To preserve the formatting of the multi-line string, you should use a different approach. I've updated these to include the entire text within triple quotes without concatenation.
️✔️AzureCLI-FullTest
|
|
Hi @quillanogle, |
️✔️AzureCLI-BreakingChangeTest
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
rerun checks
|
#sign-off |
az monitor action-group create: Change --actions
src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups.py
Show resolved
Hide resolved
src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups.py
Show resolved
Hide resolved
fixed line 361
quillanogle
left a comment
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.
fixed line 361
src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups.py
Show resolved
Hide resolved
|
#sign-off |
|
Please fix CI issues |
|
az monitor action-group create: Change --actionsaz monitor action-group create: Fix formatting of --actions helping message
az monitor action-group create: Fix formatting of --actions helping message az monitor action-group create: Fix formatting of --actions help message
az monitor action-group create: Fix formatting of --actions help message az monitor action-group create: Adjust formatting of --actions help message
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
…ctions` help message (Azure#29747) * Update action_groups.py
When you concatenate a regular string with a multi-line string using the + operator, the multi-line string loses its formatting and is treated as a single line.
To preserve the formatting of the multi-line string, you should use a different approach.
I've updated these to include the entire text within triple quotes without concatenation.
Related command
az monitor action-group create
az monitor action-group update
az monitor action-group notification create
Description
There were multi line strings for the additional data for these command parameters that were broken and just showed large blocks of text.
Testing Guide
just the help notes for the create and update commands.
History Notes
[Monitor]
az monitor action-group create: Adjust formatting of--actionshelp message[Monitor]
az monitor action-group update: Adjust formatting of--add-actionshelp message[Monitor]
az monitor action-group notification create: Adjust formatting of--add-actionshelp messageThis 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.
I adhere to the Error Handling Guidelines.