diff options
author | Pranay Singh <i5singh.pranay@gmail.com> | 2022-04-28 14:23:44 +0530 |
---|---|---|
committer | Pranay Singh <i5singh.pranay@gmail.com> | 2022-04-28 14:23:44 +0530 |
commit | f19084cf73124603b4a092b7d4a8f4d584b6c11f (patch) | |
tree | 7b295f817f7b44886708e2730d45e16407f043c8 | |
parent | ef27edec592e87b637220b05f582f3e786218dc3 (diff) | |
download | chef-f19084cf73124603b4a092b7d4a8f4d584b6c11f.tar.gz |
adding exception to bypass nil class error in compliance phase
Signed-off-by: Pranay Singh <i5singh.pranay@gmail.com>
-rw-r--r-- | lib/chef/compliance/profile_collection.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/compliance/profile_collection.rb b/lib/chef/compliance/profile_collection.rb index 919abe0c51..ddd83b0c74 100644 --- a/lib/chef/compliance/profile_collection.rb +++ b/lib/chef/compliance/profile_collection.rb @@ -45,7 +45,7 @@ class Chef end # @return [Boolean] if any of the profiles are enabled - # + def using_profiles? any?(&:enabled?) end |