From 299deb38d70c32b842a97f878718f70ecc3bd763 Mon Sep 17 00:00:00 2001 From: Jay Mundrawala Date: Wed, 25 Mar 2015 09:24:48 -0700 Subject: [PATCH] Fixed bug where module_name would return an object instead of string --- lib/chef/provider/dsc_resource.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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