summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-01-22 10:53:42 -0800
committerGitHub <noreply@github.com>2018-01-22 10:53:42 -0800
commit56568c01e38202dc853011efd50812e441c933fc (patch)
treec0380cb2c449611656c72be8d47e8f7d9f506531
parente19256f6f85c960ec769fd5cadebff9114c40090 (diff)
parentb61c20a6789c8436883f06f216f8dbaa4a81197c (diff)
downloadchef-56568c01e38202dc853011efd50812e441c933fc.tar.gz
Merge pull request #6515 from dimsh99/fix_for_6242
Convert actions in Chef::Resource::Notification to symbols to prevent double notification
-rw-r--r--lib/chef/resource/resource_notification.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/resource_notification.rb b/lib/chef/resource/resource_notification.rb
index bd09097669..6ede2fc346 100644
--- a/lib/chef/resource/resource_notification.rb
+++ b/lib/chef/resource/resource_notification.rb
@@ -30,7 +30,7 @@ class Chef
def initialize(resource, action, notifying_resource)
@resource = resource
- @action = action
+ @action = action&.to_sym
@notifying_resource = notifying_resource
end