summaryrefslogtreecommitdiff
path: root/lib/oxidized/worker.rb
diff options
context:
space:
mode:
authorDanilo Sousa <danilopopeye@users.noreply.github.com>2017-09-14 16:10:08 -0300
committerGitHub <noreply@github.com>2017-09-14 16:10:08 -0300
commit525891295bcca31dba9e8a8079fa64a293335814 (patch)
tree605ae42153eb828b98b20fd922f17a419d7c7b93 /lib/oxidized/worker.rb
parent1ec63b1bf1d3f6034665af7afe0a0a9df3928ec5 (diff)
parentf2beb09e8fcc3b301cd1afac5a4b5408821206ab (diff)
Merge pull request #1025 from ZacharyPuls/node-email-fix
Fix issue where "email" JSON field is not being passed through from REST API
Diffstat (limited to 'lib/oxidized/worker.rb')
-rw-r--r--lib/oxidized/worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/worker.rb b/lib/oxidized/worker.rb
index dfe9803..4173680 100644
--- a/lib/oxidized/worker.rb
+++ b/lib/oxidized/worker.rb
@@ -52,7 +52,7 @@ module Oxidized
msg += " with message '#{node.msg}'" if node.msg
output = node.output.new
if output.store node.name, job.config,
- :msg => msg, :user => node.user, :group => node.group
+ :msg => msg, :email => node.email, :user => node.user, :group => node.group
Oxidized.logger.info "Configuration updated for #{node.group}/#{node.name}"
Oxidized.Hooks.handle :post_store, :node => node,
:job => job,