From b246d12105a8941d18fce4020d6bc3182b626e2a Mon Sep 17 00:00:00 2001 From: pc16470 Date: Wed, 20 May 2026 10:48:30 +0200 Subject: [PATCH] bug fix after previous commit --- base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base.py b/base.py index d343927..778df83 100644 --- a/base.py +++ b/base.py @@ -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 []') 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)