-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add management groups commands to azure-cli-resource #6426
Merged
Merged
Changes from 4 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
ae58bff
Add mgmt groups to resource, use latest SDK, update tests
rajshah11 42376be
Bump up version and edit history
rajshah11 89210ef
Add wheel file
rajshah11 07e1bf3
style check
rajshah11 80d08ab
Changes suggested in PR/after review
rajshah11 972a0e6
More changes suggested in the PR and rerun tests
rajshah11 6d06867
Style check
rajshah11 25e6137
Some build fixes
rajshah11 9a9566c
Minor fix
rajshah11 21ddb6b
Fix build errors, rerun tests in prod, update help
rajshah11 4266a02
Merge branch 'dev' of https://github.com/Azure/azure-cli into cli-mgm…
rajshah11 698c379
Supress extension
rajshah11 e73a0a6
Remove private whl file
rajshah11 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file added
BIN
+59.7 KB
privates/azure_mgmt_managementgroups-2018_03_01_preview-py2.py3-none-any.whl
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...mmand_modules/azure-cli-resource/azure/cli/command_modules/resource/_exception_handler.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# -------------------------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for license information. | ||
# -------------------------------------------------------------------------------------------- | ||
|
||
from azure.cli.core.util import CLIError | ||
|
||
|
||
def managementgroups_exception_handler(ex): | ||
from azure.mgmt.managementgroups.models import ErrorResponseException | ||
if isinstance(ex, ErrorResponseException): | ||
if ex.error.error: | ||
raise CLIError(ex.error.error) | ||
else: | ||
raise CLIError(ex.error) | ||
else: | ||
import sys | ||
from six import reraise | ||
reraise(*sys.exc_info()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This needs to be more explicit especially since these commands live in the command tree that is predominantly in a different module.
"* add
account management-group
commands."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.
Ok will make this change. Also, just checked the travis build. Will make the changes.