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
This commit is contained in:
Evgeny L 2016-11-18 17:11:34 +00:00 committed by Evgeniy L
parent af1e5da094
commit 9979fb8e27
1 changed files with 4 additions and 0 deletions

4
agent
View File

@ -140,6 +140,10 @@ class Offloading
def to_json(options = {})
{'name' => @name, 'state' => nil, 'sub' => @sub}.to_json()
end
def to_s
"#{@name}: #{@sub}"
end
end
class NodeAgent