diff options
author | Zachary Puls <zach@zachpuls.com> | 2017-09-13 10:12:42 -0500 |
---|---|---|
committer | Zach Puls <zpuls@ksfiber.net> | 2017-09-13 10:12:42 -0500 |
commit | f2beb09e8fcc3b301cd1afac5a4b5408821206ab (patch) | |
tree | 605ae42153eb828b98b20fd922f17a419d7c7b93 /lib/oxidized/node.rb | |
parent | 1ec63b1bf1d3f6034665af7afe0a0a9df3928ec5 (diff) |
Fix issue where "email" JSON field is not being passed through from REST
API to worker. This allows for Gitlab (or another Git UI) to properly
display the commit author.
Diffstat (limited to 'lib/oxidized/node.rb')
-rw-r--r-- | lib/oxidized/node.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/oxidized/node.rb b/lib/oxidized/node.rb index 4f9ae54..2b15d4e 100644 --- a/lib/oxidized/node.rb +++ b/lib/oxidized/node.rb @@ -6,7 +6,7 @@ module Oxidized class ModelNotFound < OxidizedError; end class Node attr_reader :name, :ip, :model, :input, :output, :group, :auth, :prompt, :vars, :last, :repo - attr_accessor :running, :user, :msg, :from, :stats, :retry + attr_accessor :running, :user, :email, :msg, :from, :stats, :retry alias :running? :running def initialize opt @@ -121,7 +121,7 @@ module Oxidized end def reset - @user = @msg = @from = nil + @user = @email = @msg = @from = nil @retry = 0 end |