[X2Go-Commits] [x2gobroker] 05/18: x2gobroker/agent.py: No load-checking when remote_agent is set to 'LOCAL'.

git-admin at x2go.org git-admin at x2go.org
Mon Apr 30 19:10:55 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 02ce95a337b42f320f1fde5c603969ad21bd5b73
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Mon Apr 30 15:10:55 2018 +0200

    x2gobroker/agent.py: No load-checking when remote_agent is set to 'LOCAL'.
---
 x2gobroker/agent.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/x2gobroker/agent.py b/x2gobroker/agent.py
index aba0931..6252619 100644
--- a/x2gobroker/agent.py
+++ b/x2gobroker/agent.py
@@ -443,6 +443,10 @@ def check_load(remote_agent=None, logger=None, **kwargs):
         logger.error('no remote agent was given, can\'t query load')
         return "NO-REMOTE-AGENT"
 
+    if remote_agent == 'LOCAL':
+        logger.error('no load checking support if remote agent is set to \'LOCAL\'')
+        return "REMOTE-AGENT-IS-SET-TO-LOCAL"
+
     try:
         if "username" in list(kwargs.keys()):
             del kwargs["username"]

--
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