summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny L <eli@mirantis.com>2016-11-18 17:11:34 +0000
committerEvgeniy L <eli@mirantis.com>2016-11-21 16:40:40 +0000
commit9979fb8e27211976377882b7091b7a99b8dcc6a1 (patch)
tree6a1b34aa250e3d24954f1175eedc7b4ac1a868b9
parentaf1e5da094c2975230da29f808b26645231841d4 (diff)
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
Notes
Notes (review): Verified+1: Fuel CI <fuel-ci-bot@mirantis.com> Code-Review+2: Vladimir Sharshov <vsharshov@mirantis.com> Workflow+1: Vladimir Sharshov <vsharshov@mirantis.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Tue, 22 Nov 2016 09:06:05 +0000 Reviewed-on: https://review.openstack.org/399698 Project: openstack/fuel-nailgun-agent Branch: refs/heads/master
-rwxr-xr-xagent4
1 files changed, 4 insertions, 0 deletions
diff --git a/agent b/agent
index 4f8f445..c002928 100755
--- a/agent
+++ b/agent
@@ -140,6 +140,10 @@ class Offloading
140 def to_json(options = {}) 140 def to_json(options = {})
141 {'name' => @name, 'state' => nil, 'sub' => @sub}.to_json() 141 {'name' => @name, 'state' => nil, 'sub' => @sub}.to_json()
142 end 142 end
143
144 def to_s
145 "#{@name}: #{@sub}"
146 end
143end 147end
144 148
145class NodeAgent 149class NodeAgent