improve frappy manager

- add functionality to guess combination of configurations from
  the running sea and frappy servers
- instead of the name only, the references to the config in
  the SeaClient modules are used
- make this information also visibible in frappy list
This commit is contained in:
2023-09-20 17:01:06 +02:00
parent 957a5f0b2c
commit fc364f0fc6
3 changed files with 148 additions and 80 deletions

View File

@ -164,13 +164,13 @@ class ServiceManager:
"""return cfg info about running programs, if relevant
example for sea: return samenv name
if service is None return a dict <service> of <cfg>
"""
cfginfo = {}
self.get_procs(self.group, cfginfo)
result = cfginfo.get((ins, service))
if result:
return result
return ''
if service is None:
return {s: cfginfo.get((ins, s)) or '' for s in self.services}
return cfginfo.get((ins, service)) or ''
def get_procs(self, groups=None, cfginfo=None):
"""return processes