-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vmware_guest: Fix vApp property handling
The vmware_guest module did not properly handle setting vApp properties if the VmConfigSpec never contained an active vAppConfig. This resulted in an exception due to trying to access `property` on `None`. This commit changes the behavior to default the current list of vApp properties to an empty list if there has never been any vAppConfig.
- Loading branch information
Showing
2 changed files
with
7 additions
and
2 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
bugfixes: | ||
- vmware_guest - setting vApp properties on virtual machines without vApp options raised an AttributeError. | ||
Fix now gracefully handles a `None` value for vApp options when retrieving current vApp properties | ||
(https://github.com/ansible-collections/community.vmware/pull/2220). |
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