diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-03-15 14:28:36 -0700 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-03-20 14:38:49 -0700 |
commit | c71696269ea1865101b1857914f8afdd0a1e7e69 (patch) | |
tree | 9c952b95a7845f49a958dc17e523024a288dc486 /lib/chef/util | |
parent | e374b7ba24593c4ffaaf33bca27f623e9f758925 (diff) | |
download | chef-c71696269ea1865101b1857914f8afdd0a1e7e69.tar.gz |
Useful error message when dsc resource is not found
Diffstat (limited to 'lib/chef/util')
-rw-r--r-- | lib/chef/util/dsc/resource_store.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/chef/util/dsc/resource_store.rb b/lib/chef/util/dsc/resource_store.rb index 643f5e8d2f..fdcecc2b3c 100644 --- a/lib/chef/util/dsc/resource_store.rb +++ b/lib/chef/util/dsc/resource_store.rb @@ -96,7 +96,9 @@ class DSC :object) result = cmdlet.run ret_val = result.return_value - if ret_val.is_a? Array + if ret_val.nil? + [] + elsif ret_val.is_a? Array ret_val else [ret_val] |