Hunt Xu has uploaded a new change for review.

Change subject: BindingJsonRpc: correctly stop reactors
......................................................................

BindingJsonRpc: correctly stop reactors

vdsm raises an exception saying "AttributeError: 'str' object has no
attribute 'stop'". This commit fixes this problem.

Change-Id: I1060d04bb37b8732eee1678f40cb770716b0473e
Signed-off-by: huntxu <[email protected]>
---
M vdsm_api/BindingJsonRpc.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/73/16473/1

diff --git a/vdsm_api/BindingJsonRpc.py b/vdsm_api/BindingJsonRpc.py
index f9c634e..b2fd506 100644
--- a/vdsm_api/BindingJsonRpc.py
+++ b/vdsm_api/BindingJsonRpc.py
@@ -108,5 +108,5 @@
 
     def prepareForShutdown(self):
         self.server.stop()
-        for reactor in self._reactors:
+        for reactor in self._reactors.itervalues():
             reactor.stop()


-- 
To view, visit http://gerrit.ovirt.org/16473
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1060d04bb37b8732eee1678f40cb770716b0473e
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Hunt Xu <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to