From af4a97f05ae08f2c9e437b92bdbbde0c2256d610 Mon Sep 17 00:00:00 2001 From: Jay Mundrawala Date: Sat, 7 Mar 2015 18:51:51 -0800 Subject: Update dsc_resource provider to work with 3rd party resources An example resource: ```ruby dsc_resource "xSmbShare" do resource :xSmbShare property :Name, 'SMBShare1' property :Path, 'C:\Users\vagrant' property :Ensure, 'Present' end ``` --- lib/chef/util/dsc/resource_store.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/chef/util/dsc') diff --git a/lib/chef/util/dsc/resource_store.rb b/lib/chef/util/dsc/resource_store.rb index 3adc763483..e28a146afd 100644 --- a/lib/chef/util/dsc/resource_store.rb +++ b/lib/chef/util/dsc/resource_store.rb @@ -78,7 +78,7 @@ class DSC def find_resources(name, module_name, rs) found = rs.find_all do |r| - name_matches = r['FriendlyName'].casecmp(name) == 0 + name_matches = r['Name'].casecmp(name) == 0 if name_matches module_name == nil || (r['Module'] and r['Module']['Name'].casecmp(module_name) == 0) else -- cgit v1.2.1