-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[Compute] vm identity command migration #32562
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
Closed
+1,939
−6,747
Closed
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
b3aff40
[refractor] - Migrated 'az vm identity show' command
william051200 1c59887
[Refractor] - Refractored show_vm_dentity function and migrated get_v…
william051200 6bb240e
[Refractor] - Migrated assign_vm_identity function
william051200 52253ce
[Refractor] - Preserve old function to avoid breaking change, updated…
william051200 b25cf79
[Refractor] - Refractored assign_identity_helper function
william051200 b963e03
[Refractor] - Edit so the response is same as original when identity …
william051200 b642ef8
[refractor] - Added handling to assign_vm_identity function
william051200 067f3f9
[Refractor] - Migrated remove_vm_identity function
william051200 b9e8c94
[Refractor] - Edited function name
william051200 b7a85e8
[style] - Update code styling
william051200 ef89f6e
[style] - Update code styling
william051200 57f0f00
[test] - fixed test_vm_explicit_msi test case
william051200 ec22b79
[style] - Update code styling
william051200 21b7b06
[style] - Update code styling
william051200 5c28bbe
[style] - Update code styling
william051200 0b8a7bc
[test] - Added handling to vm create and vmss create command
william051200 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 hidden or 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 hidden or 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.
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.
The
mi_user_assignedlist is created and then potentially modified by appending to it at lines 879 and 882. However, whenidentity_types == system_assigned(the else branch at line 876),mi_user_assignedis never initialized incommand_args. This means attempting to append to it at line 879 will fail with a KeyError. The else branch should also initializecommand_args['mi_user_assigned'] = [].