You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When changing a chocolateyfeature to enabled it only sets the "enabled" property to "true" (this is how chocolatey defines its default values) and does not care about the "setExplicitly" property.
eg.
chocolateyfeature { 'exitOnRebootDetected':
ensure => 'enabled',
}
Notice: /Stage[main]/Main/Chocolateyfeature[exitOnRebootDetected]/ensure: ensure changed 'disabled' to 'enabled'
PS> Get-Content C:\ProgramData\chocolatey\config\chocolatey.config | Select-String exitOnRebootDetected
<feature name="exitOnRebootDetected" enabled="true" setExplicitly="false" description="Exit On Reboot Detected - Stop running install, upgrade, or uninstall when a reboot request is detected. Requires 'usePackageExitCodes' feature to be turned on. Will exit with either 350 or 1604. When it exits with 350, it
means pending reboot discovered prior to running operation. When it exits with 1604, it means some work completed prior to reboot request being detected." />
Describe the Solution You Would Like
When setting a chocolateyfeature to "enabled" it should care about and set the setExplicitly value to true aswell
Additional Context
This could be addressed by having the chocolateyfeature provider also look at / change the setExplicitly
Will make a PR for this aswell
The text was updated successfully, but these errors were encountered:
Use Case
When changing a chocolateyfeature to enabled it only sets the "enabled" property to "true" (this is how chocolatey defines its default values) and does not care about the "setExplicitly" property.
eg.
Describe the Solution You Would Like
When setting a chocolateyfeature to "enabled" it should care about and set the setExplicitly value to true aswell
Additional Context
This could be addressed by having the chocolateyfeature provider also look at / change the setExplicitly
Will make a PR for this aswell
The text was updated successfully, but these errors were encountered: