-
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
[Compute] ppg show: add --colocation-status to Enable fetching the colocation status of all the resources in the proximity placement group #12248
Merged
Merged
Changes from 9 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
db5103e
[Compute] vm/vmss/availability-set update: add --ppg to allowing upda…
qwordy f00a493
stage
qwordy af3e146
add test
qwordy 2ad8529
Merge branch 'dev' of https://github.com/Azure/azure-cli into 11420
qwordy e86c337
Add help; Support translataion from name to ID
qwordy 0c9a57e
Merge branch 'dev' of https://github.com/Azure/azure-cli into 11420
qwordy 76261b7
[Compute] ppg show: add --colocation to Enable fetching the colocatio…
qwordy be327cb
Add test
qwordy 47bc98e
update parameter name
qwordy fa891c8
Merge branch 'dev' of https://github.com/Azure/azure-cli into 11420
qwordy 634cf1c
test
qwordy 89abaef
Merge branch 'dev' of https://github.com/Azure/azure-cli into 11420
qwordy d683743
revolve some comments
qwordy 0781f92
Merge branch 'dev' of https://github.com/Azure/azure-cli into 11420
qwordy f44d6a0
Update parameter
qwordy a9d257c
Merge branch 'dev' of https://github.com/Azure/azure-cli into 11420
qwordy 178c394
compute 11.0.0
qwordy 3c5fcd7
test
qwordy 28e9e59
fix test
qwordy 308f9c1
Merge branch 'dev' of https://github.com/Azure/azure-cli into 11420
qwordy b31ff43
Merge branch 'dev' of https://github.com/Azure/azure-cli into 11420
qwordy 3f24d12
fix
qwordy 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3468,6 +3468,8 @@ def test_proximity_placement_group(self, resource_group, resource_group_location | |
self.check('location', '{loc}'), | ||
]) | ||
|
||
self.cmd('ppg show -g {rg} -n {ppg1} --colocation-status') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How about checking the returned JSON? |
||
|
||
@ResourceGroupPreparer(name_prefix='cli_test_ppg_vm_vmss_') | ||
def test_ppg_with_related_resources(self, resource_group): | ||
|
||
|
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.
just one question. Should we use g.custom_command? Based on your implementation, I think we can still use command.
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.
well. I got your point. It's a required filed. Right? I think you can also set
required=False
to use it. But this one is fine.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.
if this filed is not required in SDK. I don't think you need change this one. You can just rewrite the c.argument.
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.
I agree. We don't need to use
custom_command
. Also we should useshow_command
andcustom_show_command
so that the exit code is correctly set to 3 on a 404.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.
@myronfanqiu Agree. command() is enough. I didn't realize that there is such an argument. Then I added a new one.
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.
@jiasli Good advice. An interesting fact is that there is no show_command() is vm module's params. I'll try it.