Commit 7f6dcf39 by James Cammarata

Merge pull request #5805 from bcoca/bsd_insensitive

be permissive with BSD with service enabled upper/lower/mixed cases
parents fe091ec0 46dfe071
...@@ -325,7 +325,7 @@ class Service(object): ...@@ -325,7 +325,7 @@ class Service(object):
if len(rcarray) >= 1 and '=' in rcarray[0]: if len(rcarray) >= 1 and '=' in rcarray[0]:
(key, value) = rcarray[0].split("=", 1) (key, value) = rcarray[0].split("=", 1)
if key == self.rcconf_key: if key == self.rcconf_key:
if value == self.rcconf_value: if value.upper() == self.rcconf_value:
# Since the proper entry already exists we can stop iterating. # Since the proper entry already exists we can stop iterating.
changed = False changed = False
break break
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment