allow <INS> in envrionment varables in servicemanager.cfg
This commit is contained in:
parent
a3453e6b0e
commit
0904390dc3
1
base.py
1
base.py
@ -132,6 +132,7 @@ class ServiceManager:
|
|||||||
value = section.get(key)
|
value = section.get(key)
|
||||||
if key.endswith('_PORT'):
|
if key.endswith('_PORT'):
|
||||||
return value.replace('nr', nr)
|
return value.replace('nr', nr)
|
||||||
|
value = value.replace('<INS>', ins)
|
||||||
return ':'.join(expanduser(p % dict(ins=ins)) for p in value.split(':'))
|
return ':'.join(expanduser(p % dict(ins=ins)) for p in value.split(':'))
|
||||||
|
|
||||||
for ins in parser.sections():
|
for ins in parser.sections():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user