diff options
author | dmitrys <dmitrys@northernlight.com> | 2017-10-23 12:28:28 -0400 |
---|---|---|
committer | dmitrys <dmitrys@northernlight.com> | 2017-10-23 12:28:28 -0400 |
commit | e86b8e83ba571b84307a5f04e1eb64703eb523f2 (patch) | |
tree | 5d92689db615aebb2be19208e4fd0cf5012f29a9 /lib/chef/resource | |
parent | d646ef03f32874a150a09603ca09ef59abcf13f6 (diff) | |
download | chef-e86b8e83ba571b84307a5f04e1eb64703eb523f2.tar.gz |
Action is converted to symbol if possible
Signed-off-by: dmitrys <dmitrys@northernlight.com>
Diffstat (limited to 'lib/chef/resource')
-rw-r--r-- | lib/chef/resource/resource_notification.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/chef/resource/resource_notification.rb b/lib/chef/resource/resource_notification.rb index ee90064a17..2786e4c39b 100644 --- a/lib/chef/resource/resource_notification.rb +++ b/lib/chef/resource/resource_notification.rb @@ -26,7 +26,11 @@ class Chef def initialize(resource, action, notifying_resource) @resource = resource - @action = action + @action = if action.respond_to?(:to_sym) + action.to_sym + else + action + end @notifying_resource = notifying_resource end |