diff options
Diffstat (limited to 'lib/chef/compliance/waiver_collection.rb')
-rw-r--r-- | lib/chef/compliance/waiver_collection.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/compliance/waiver_collection.rb b/lib/chef/compliance/waiver_collection.rb index a3d12b3a97..68dce07287 100644 --- a/lib/chef/compliance/waiver_collection.rb +++ b/lib/chef/compliance/waiver_collection.rb @@ -40,7 +40,7 @@ class Chef def from_file(filename, cookbook_name) new_waiver = Waiver.from_file(events, filename, cookbook_name) self << new_waiver - events.compliance_waiver_loaded(new_waiver) + events&.compliance_waiver_loaded(new_waiver) end # Add a waiver from a raw hash. This waiver will be enabled by default. |