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:
parent
bdbfbbbef7
commit
9b16ae55d1
4
agent
4
agent
|
@ -140,6 +140,10 @@ class Offloading
|
||||||
def to_json(options = {})
|
def to_json(options = {})
|
||||||
{'name' => @name, 'state' => nil, 'sub' => @sub}.to_json()
|
{'name' => @name, 'state' => nil, 'sub' => @sub}.to_json()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def to_s
|
||||||
|
"#{@name}: #{@sub}"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class NodeAgent
|
class NodeAgent
|
||||||
|
|
Loading…
Reference in New Issue