diff options
Diffstat (limited to 'lib/oxidized/node.rb')
-rw-r--r-- | lib/oxidized/node.rb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/oxidized/node.rb b/lib/oxidized/node.rb index 05a926c..6c7b3aa 100644 --- a/lib/oxidized/node.rb +++ b/lib/oxidized/node.rb @@ -58,12 +58,14 @@ module Oxidized def serialize h = { - :name => @name, - :ip => @ip, - :group => @group, - :model => @model.class.to_s, - :last => nil, + :name => @name, + :full_name => @name, + :ip => @ip, + :group => @group, + :model => @model.class.to_s, + :last => nil, } + h[:full_name] = [@group, @name].join('/') if @group if @last h[:last] = { :start => @last.start, |