[X2Go-Commits] [x2gobroker] 02/03: x2gobroker-loadchecker: Python3'ify iteration over dict keys.

git-admin at x2go.org git-admin at x2go.org
Mon Apr 30 14:14:48 CEST 2018

This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository x2gobroker.

commit dfb81e4d68aef14f07e1101af4785bb5a2479bff
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Mon Apr 30 14:14:05 2018 +0200

    x2gobroker-loadchecker: Python3'ify iteration over dict keys.
 sbin/x2gobroker-loadchecker | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbin/x2gobroker-loadchecker b/sbin/x2gobroker-loadchecker
index eb87c7d..49f55ba 100755
--- a/sbin/x2gobroker-loadchecker
+++ b/sbin/x2gobroker-loadchecker
@@ -87,7 +87,7 @@ class LoadCheckerServiceHandler(asyncore.dispatcher_with_send):
                 load_factors = load_checker.get_profile_load(backend, profile_id)
                 if load_factors:
-                    for h in load_factors.keys():
+                    for h in list(load_factors.keys()):
                         if load_factors[h] is not None:
                             output +="{hostname}:{loadfactor}\n".format(hostname=h, loadfactor=load_factors[h])
                             if self.logger: self.logger.info('LoadCheckServiceHandler.handle_read(): load check result for backend={backend}, profile_id={profile_id}, hostname={hostname}: {lf}'.format(backend=backend, profile_id=profile_id, hostname=h, lf=load_factors[h]))

Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gobroker.git

More information about the x2go-commits mailing list