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:
8
base.py
8
base.py
@ -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
|
||||
|
Reference in New Issue
Block a user