Update plugins/modules/sysrc.py

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
Vladimir Botka 2025-07-14 22:59:04 +02:00 committed by Felix Fontein
commit b0e734a912

View file

@ -136,7 +136,7 @@ class Sysrc(object):
if self.value is None:
return self.name in conf
else:
return self.name in conf and conf[self.name] == '%s' % self.value
return self.name in conf and conf[self.name] == self.value
def contains(self):
(rc, out, err) = self.run_sysrc('-n', self.name)