rework sea cfg
use seaststus.tcl instead of a live connection for getting the current SEA cfg. cfg is now shown also when all instruments are listed
This commit is contained in:
7
base.py
7
base.py
@ -416,10 +416,7 @@ class ServiceManager:
|
||||
for serv, port in info_grp.items():
|
||||
plist = procs_dict.get(serv)
|
||||
if plist:
|
||||
if ins is None:
|
||||
cfg = ''
|
||||
else:
|
||||
cfg = cfginfo.get((ins_i, serv), '') or sm.get_cfg(ins_i, serv)
|
||||
cfg = cfginfo.get((ins_i, serv), '') or sm.get_cfg(ins_i, serv)
|
||||
if sm == self:
|
||||
show_ins = True
|
||||
gs = '%s %s' % (group, serv)
|
||||
@ -434,7 +431,7 @@ class ServiceManager:
|
||||
if show_ins:
|
||||
rows.extend(run_info)
|
||||
print('')
|
||||
printTable(('inst', 'service', 'port', '' if ins is None else 'cfg'), rows, print)
|
||||
printTable(('inst', 'service', 'port', 'cfg'), rows, print)
|
||||
|
||||
@staticmethod
|
||||
def extra_info(ins):
|
||||
|
Reference in New Issue
Block a user