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:
l_samenv
2022-12-21 13:37:17 +01:00
parent b387177668
commit 91cf31dde5
2 changed files with 27 additions and 7 deletions

View File

@ -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):