Browse Source

Fix Offloading class not to generate different has sum

Objects from Offloading class are used to calculate checksums for
Nailgun, without `to_s` object id is used, which is every time different.

Change-Id: I07e9c3d0a88e7a674b0eeab8dc23f20987fedea6
Closes-bug: #1643008
tags/11.0.0.0rc1
Evgeny L 2 years ago
parent
commit
9979fb8e27
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      agent

+ 4
- 0
agent View File

@@ -140,6 +140,10 @@ class Offloading
140 140
   def to_json(options = {})
141 141
     {'name' => @name, 'state' => nil, 'sub' => @sub}.to_json()
142 142
   end
143
+
144
+  def to_s
145
+    "#{@name}: #{@sub}"
146
+  end
143 147
 end
144 148
 
145 149
 class NodeAgent

Loading…
Cancel
Save