-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
win_powershell - Add defensive GetType() check (#710)
Some unique types may fail when calling the GetType() method. This commit adds a check to ensure the GetType() method exists before calling it to avoid an error when trying to process the output object.
- Loading branch information
Showing
2 changed files
with
7 additions
and
1 deletion.
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: | ||
- >- | ||
ansible.windows.win_powershell - Add extra checks to avoid ``GetType`` error when converting the output object | ||
- ttps://github.com/ansible-collections/ansible.windows/issues/708 |
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