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

cohesity_win_agent - Incorrect wildcard usage for Get-ItemProperty #53

Closed
DegerfeldtConsulting opened this issue Sep 18, 2024 · 1 comment · Fixed by #57
Closed

cohesity_win_agent - Incorrect wildcard usage for Get-ItemProperty #53

DegerfeldtConsulting opened this issue Sep 18, 2024 · 1 comment · Fixed by #57
Assignees
Labels
bug Something isn't working

Comments

@DegerfeldtConsulting
Copy link

According to the official documentation the parameter "LiteralPath" does not support wildcards

"Specifies the path to the current location of the property. The value of LiteralPath is used exactly as it is typed. No characters are interpreted as wildcards"

https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-itemproperty?view=powershell-5.1

This means that Get-CohesityAgent will always return a null value and the module will report every installation as a failure no matter the actual result since the script is attempting to find a registry key using a wildcard

https://github.com/cohesity/ansible-collection/blame/4ea8671e1cd102395da154c93504479787872bdb/plugins/modules/cohesity_win_agent.ps1#L117

@kavinagrawalcohesity kavinagrawalcohesity added the bug Something isn't working label Dec 10, 2024
@kavinagrawalcohesity
Copy link
Contributor

Fixed in #57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants