bug fix after previous commit
This commit is contained in:
@@ -140,7 +140,6 @@ class ServiceManager:
|
||||
return ':'.join(expanduser(p % dict(ins=ins)) for p in value.split(':'))
|
||||
|
||||
hostname = socket.gethostname().split('.')[0]
|
||||
self.is_remote = hostname != section.get('host', hostname)
|
||||
all_ins = [k for k in parser.sections() if parser.has_option(k, self.group)]
|
||||
if len(all_ins) == 1:
|
||||
self.main_ins = self.single_ins = all_ins[0]
|
||||
@@ -150,6 +149,7 @@ class ServiceManager:
|
||||
if ins == 'MAIN':
|
||||
raise ValueError('error in ~/servicemanager.cfg: replace [MAIN] by [<instrument name>]')
|
||||
section = dict(parser[ins])
|
||||
self.is_remote = hostname != section.get('host', hostname)
|
||||
command = section.get('%s_command' % self.group)
|
||||
self.revcmd[command] = self.group
|
||||
nr = section.get(self.group)
|
||||
|
||||
Reference in New Issue
Block a user