mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 10:40:22 -07:00
replace dashes in rc.conf keys (which are based on freebsd rc.d filenames) to underscores
This commit is contained in:
parent
a74c0091b2
commit
4cd3b9d637
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue