From 20db829c3a764ae1ea8ff79412bc7e0e9a6c92a9 Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@gmail.com> Date: Fri, 27 Jan 2017 08:18:20 +0000 Subject: [PATCH] Fixes. --- trisurf/tsmgr.py | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/trisurf/tsmgr.py b/trisurf/tsmgr.py index 0beaf73..475b4e1 100644 --- a/trisurf/tsmgr.py +++ b/trisurf/tsmgr.py @@ -291,16 +291,20 @@ hosts=({'name':socket.gethostname(),'address':'127.0.0.1', 'runs':hosts},) #find the host at which the action is attended +# print(args) if args['host']==None: #Only status and version commands are automatically executed on all the hosts. stopping or starting or other actions is not! - if(args['status']==False and args['version']==False): - hosts=getListOfHostConfigurationByHostname(hosts,socket.gethostname()) +# if(args['status']==False and args['version']==False and): +# hosts=getListOfHostConfigurationByHostname(hosts,socket.gethostname()) + pass else: hosts=getListOfHostConfigurationByHostname(hosts,args['host']) if len(hosts)==0: print ('Hostname "{}" does not exist in configuration file. Please check the spelling'.format(args['host'][0])) exit(1) if not args['local_only']: +# print("copying to remotes, DEBUG") +# print(hosts) hosts=copyConfigAndConnect(hosts) #do local stuff: for host in hosts: -- Gitblit v1.9.3