diff options
author | Tim Smith <tsmith@chef.io> | 2020-11-06 13:22:41 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-06 13:22:41 -0800 |
commit | 761c81722790ac08c268dd2891c7eacd41eec845 (patch) | |
tree | 571bf70c639a16fe6e5a3cf8d0b9737603f8ee59 /lib | |
parent | 028db08e2baf4b1b175ec4f8328301b291cf96e8 (diff) | |
parent | 02534cc032901a9ce3e2fb701dba631dbb364c8e (diff) | |
download | chef-761c81722790ac08c268dd2891c7eacd41eec845.tar.gz |
Merge pull request #10605 from chef/collapse_more
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/provider/cron.rb | 7 | ||||
-rw-r--r-- | lib/chef/resource_collection/resource_set.rb | 6 |
2 files changed, 2 insertions, 11 deletions
diff --git a/lib/chef/provider/cron.rb b/lib/chef/provider/cron.rb index b7aa6dc3fc..7d37f34b1a 100644 --- a/lib/chef/provider/cron.rb +++ b/lib/chef/provider/cron.rb @@ -157,12 +157,7 @@ class Chef next when ENV_PATTERN next if cron_found - when SPECIAL_PATTERN - if cron_found - cron_found = false - next - end - when CRON_PATTERN + when SPECIAL_PATTERN, CRON_PATTERN if cron_found cron_found = false next diff --git a/lib/chef/resource_collection/resource_set.rb b/lib/chef/resource_collection/resource_set.rb index 5221f5c4a2..db298afb63 100644 --- a/lib/chef/resource_collection/resource_set.rb +++ b/lib/chef/resource_collection/resource_set.rb @@ -123,11 +123,7 @@ class Chef # * Chef::Exceptions::InvalidResourceSpecification for all invalid input. def validate_lookup_spec!(query_object) case query_object - when Chef::Resource - true - when SINGLE_RESOURCE_MATCH, MULTIPLE_RESOURCE_MATCH, NAMELESS_RESOURCE_MATCH - true - when Hash + when Chef::Resource, SINGLE_RESOURCE_MATCH, MULTIPLE_RESOURCE_MATCH, NAMELESS_RESOURCE_MATCH, Hash true when String raise Chef::Exceptions::InvalidResourceSpecification, |