This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository x2gobroker. commit e9b4077ba6973f91c63b4fd3da37ec4e22edf367 Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Date: Sun Apr 21 16:11:05 2019 +0200 sbin/x2gobroker-testagent: Fix indentation, set 'host_key_policy' as a string (not class). --- sbin/x2gobroker-testagent | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/sbin/x2gobroker-testagent b/sbin/x2gobroker-testagent index 9289f2b..38a6ca2 100755 --- a/sbin/x2gobroker-testagent +++ b/sbin/x2gobroker-testagent @@ -120,16 +120,15 @@ if __name__ == "__main__": list_tasks = cmdline_args.list_tasks -local_agent = (hostname == 'LOCAL') -query_mode = local_agent and 'LOCAL' or 'SSH' -if local_agent: remote_agent = None -else: remote_agent = {'hostaddr': hostname, 'port': port, } - -if remote_agent and cmdline_args.add_to_known_hosts: - remote_agent.update({ - 'host_key_policy': AutoAddPolicy(), - }) - + local_agent = (hostname == 'LOCAL') + query_mode = local_agent and 'LOCAL' or 'SSH' + if local_agent: remote_agent = None + else: remote_agent = {'hostaddr': hostname, 'port': port, } + + if remote_agent and cmdline_args.add_to_known_hosts: + remote_agent.update({ + 'host_key_policy': 'AutoAddPolicy', + }) def call_agent(task, **kwargs): try: -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gobroker.git