diff options
-rw-r--r-- | lib/chef/resource/windows_feature_powershell.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef/resource/windows_feature_powershell.rb b/lib/chef/resource/windows_feature_powershell.rb index 70c7de5783..00b36f33fd 100644 --- a/lib/chef/resource/windows_feature_powershell.rb +++ b/lib/chef/resource/windows_feature_powershell.rb @@ -216,8 +216,7 @@ class Chef def parsed_feature_list # Grab raw feature information from WindowsFeature raw_list_of_features = powershell_exec!("Get-WindowsFeature | Select-Object -Property Name,InstallState", timeout: new_resource.timeout).result - - Chef::JSONCompat.from_json(raw_list_of_features) + raw_list_of_features || [] end # add the features values to the appropriate array |