chocolatey-community / Chocolatey

PowerShell Module and DSC Resource for Chocolatey Software
MIT License
43 stars 15 forks source link

Parse any bool values passed as choco options #39

Closed ChrisLGardner closed 5 years ago

ChrisLGardner commented 5 years ago

When passed in from a MOF the bool will actually be a string and parameter binding doesn't work for those, especially for switches. So we need to parse them to make sure they get splatted correctly.

This was the simplest fix I could implement that didn't involve looping through the hashtable and creating a new one with each value parsed if needed.