Skip to content
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

win_powershell - Add defensive GetType() check #710

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

jborean93
Copy link
Collaborator

SUMMARY

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.

Fixes: #708

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

win_powershell

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.
@jborean93 jborean93 merged commit 6fd01d3 into ansible-collections:main Dec 11, 2024
39 checks passed
@jborean93 jborean93 deleted the powershell-type branch December 11, 2024 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Method invocation failed because the interface does not contain a method named 'GetType'
1 participant