1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #4370 from hostage-nl/devel

replace dashes to underscores in rc.conf keys (based on freebsd rc.d filenames)
This commit is contained in:
Michael DeHaan 2013-10-04 10:30:59 -07:00
commit 1688139cb5

View file

@ -103,6 +103,7 @@ import tempfile
import shlex import shlex
import select import select
import time import time
import string
class Service(object): class Service(object):
""" """
@ -873,7 +874,7 @@ class NetBsdService(Service):
if os.path.isfile(rcfile): if os.path.isfile(rcfile):
self.rcconf_file = rcfile self.rcconf_file = rcfile
self.rcconf_key = "%s" % self.name self.rcconf_key = "%s" % string.replace(self.name,"-","_");
return self.service_enable_rcconf() return self.service_enable_rcconf()