summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Magnus Rakvåg <tor.magnus@outlook.com>2018-12-06 15:32:37 +0100
committerTor Magnus Rakvåg <tor.magnus@outlook.com>2018-12-06 15:38:15 +0100
commitbd46df1e0f5089bc95c1a1f04974804afa55756f (patch)
tree7310da3db33fd053fbe0123015e3388ffc6dcd14
parentea923ef1320455873396761562806d517165df65 (diff)
downloadchef-bd46df1e0f5089bc95c1a1f04974804afa55756f.tar.gz
resolve idempotency issue with different resource name and source_name
Signed-off-by: Tor Magnus Rakvåg <tm@intility.no>
-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 52ebe1e8a4..956f36e3e2 100644
--- a/lib/chef/resource/powershell_package_source.rb
+++ b/lib/chef/resource/powershell_package_source.rb
@@ -54,7 +54,7 @@ class Chef
description: "The location where scripts will be published to for this source. Only valid if the provider is 'PowerShellGet'."
load_current_value do
- cmd = load_resource_state_script(name)
+ cmd = load_resource_state_script(source_name)
repo = powershell_out!(cmd)
if repo.stdout.empty?
current_value_does_not_exist!