strip leading underscore from secop parameter names
+ other fixes and debugging prints
This commit is contained in:
@@ -16,13 +16,14 @@ def main():
|
||||
fm = FrappyManager()
|
||||
fm.get_info()
|
||||
host = socket.gethostname().split('.')[0]
|
||||
for ins, procs in fm.get_procs().items():
|
||||
cfginfo = {}
|
||||
for ins, procs in fm.get_procs(cfginfo=cfginfo).items():
|
||||
for service in procs:
|
||||
if service in procs:
|
||||
port = fm.info.get(ins, {}).get(service, {})
|
||||
if port:
|
||||
uri = f'{host}:{port}'
|
||||
print('CREATE', uri)
|
||||
print('CREATE', uri, cfginfo.get((ins, service)))
|
||||
TrySecopConnect(uri)
|
||||
|
||||
event_map = {'value': db.add_float, 'error': db.add_error, 'stream': db.add_stream}
|
||||
|
||||
Reference in New Issue
Block a user