diff --git a/lib/chef/provider/dsc_resource.rb b/lib/chef/provider/dsc_resource.rb index fabb6958032..2812c154c6a 100644 --- a/lib/chef/provider/dsc_resource.rb +++ b/lib/chef/provider/dsc_resource.rb @@ -107,7 +107,7 @@ def module_name if found[0]['Module'].nil? :none else - found[0]['Module'] + found[0]['Module']['Name'] end else raise Chef::Exceptions::MultipleDscResourcesFound, found