make new version of frappy work

- frappy instead of secop
- python cfg files
This commit is contained in:
l_samenv
2023-05-04 14:57:01 +02:00
parent 42125b9887
commit 02ca6de3ec
2 changed files with 31 additions and 10 deletions

View File

@@ -438,6 +438,12 @@ class ServiceManager:
print('')
printTable(('inst', 'service', 'port', 'cfg'), rows, print)
def do_getports(self, ins):
"""machine readable list of services with port numbers"""
self.get_info()
procs = self.get_procs().get(ins, {})
print(' '.join('%s %s' % (k, self.info[ins][k]) for k in procs))
@staticmethod
def extra_info(ins):
"""provide extra info or None"""