Skip to content

Commit

Permalink
Bug Fix: Wait for LRO before enabling GuestManagement (#5631)
Browse files Browse the repository at this point in the history
* Wait for SystemAssigned Identity PATCH to complete before enabling Guest management on VM

* Update src/connectedvmware/azext_connectedvmware/custom.py

Co-authored-by: Xing Zhou <[email protected]>

Co-authored-by: ArcVMwareUser <[email protected]>
Co-authored-by: Xing Zhou <[email protected]>
  • Loading branch information
3 people authored Dec 23, 2022
1 parent 42102c3 commit 5353b54
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions src/connectedvmware/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
Release History
===============


0.1.10
++++++
* Bug Fix: Wait for SystemAssigned Identity PATCH to complete before enabling Guest management on VM.

0.1.9
++++++
* Update API Version from 2020-10-01-preview to 2022-01-10-preview.
Expand Down
4 changes: 1 addition & 3 deletions src/connectedvmware/azext_connectedvmware/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@
cf_virtual_machine,
)

# endregion

# region VCenters


Expand Down Expand Up @@ -1611,7 +1609,7 @@ def enable_guest_agent(
vm_client = cf_virtual_machine(cmd.cli_ctx)

if is_system_identity_enabled(vm_client, resource_group_name, vm_name) is False:
enable_system_identity(vm_client, resource_group_name, vm_name, no_wait)
enable_system_identity(vm_client, resource_group_name, vm_name, False).result()

vm_creds = GuestCredential(username=username, password=password)

Expand Down
2 changes: 1 addition & 1 deletion src/connectedvmware/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# TODO: Confirm this is the right version number you want and it matches your
# HISTORY.rst entry.

VERSION = '0.1.9'
VERSION = '0.1.10'

# The full list of classifiers is available at
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
Expand Down

0 comments on commit 5353b54

Please sign in to comment.