-
Notifications
You must be signed in to change notification settings - Fork 167
Issue #147 #588
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
Issue #147 #588
Conversation
Attempting to fix Issue ansible-collections#147 as a confirmation is required when it should not.
Thanks for the PR, are you able to create a changelog fragment for this bugfix Thanks for the bugfix, is it possible to add a changelog fragment to document this bugfix https://docs.ansible.com/ansible/latest/community/development_process.html#creating-changelog-fragments. Just to confirm this fixes a problem when running in check mode and the nuget provider needed to be installed? |
@jborean93 I added the fragment. The problem also occurs when not running in check mode. |
Sorry I misread the change and thought it was just adding Keep in mind the code inside the |
I tested it and it works out just fine.
|
The issue that goes into more detail for this is #487 but I'll try to explain it again. It's a complicated scenario that doesn't happen for all scenarios but for some we still need to handle. The problem is using any of the cmdlets from In the case you are trying to fix, calling $nugetProvider = Get-PackageProvider -ListAvailable | Where-Object { ($_.name -eq 'Nuget') -and ($_.version -ge "2.8.5.201") }
if (-not($nugetProvider)) {
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force | Out-Null
} We don't need to worry about check mode here because the job won't be run in check mode. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this issue, appreciate the patience while I try to explain the current way the module works.
SUMMARY
Attempting to fix Issue #147 as a confirmation is required when it should not.
ISSUE TYPE
COMPONENT NAME
win_psmodule
ADDITIONAL INFORMATION
Before:
After