mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-01 11:44:24 -07:00
Update plugins/modules/sysrc.py
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
d7387c6a4a
commit
b0e734a912
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue