summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Magnus Rakvåg <tor.magnus@outlook.com>2018-12-07 09:22:17 +0100
committerTor Magnus Rakvåg <tor.magnus@outlook.com>2018-12-07 09:22:17 +0100
commit71f2f8461b1e354d22b595882dd8646a30cccdba (patch)
tree9e4e926b24fba22d0916aa0f0c9cff1f03aaf377
parentbd46df1e0f5089bc95c1a1f04974804afa55756f (diff)
downloadchef-71f2f8461b1e354d22b595882dd8646a30cccdba.tar.gz
bare words as strings on the right hand side don't work
Signed-off-by: Tor Magnus Rakvåg <tor.magnus@outlook.com>
-rw-r--r--lib/chef/resource/powershell_package_source.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/powershell_package_source.rb b/lib/chef/resource/powershell_package_source.rb
index 956f36e3e2..ce29322f9f 100644
--- a/lib/chef/resource/powershell_package_source.rb
+++ b/lib/chef/resource/powershell_package_source.rb
@@ -149,7 +149,7 @@ class Chef
def load_resource_state_script(name)
<<-EOH
$PSDefaultParameterValues = @{
- "*:WarningAction" = SilentlyContinue
+ "*:WarningAction" = "SilentlyContinue"
}
if(Get-PackageSource -Name '#{name}' -ErrorAction SilentlyContinue) {
if ((Get-PackageSource -Name '#{name}').ProviderName -eq 'PowerShellGet') {