Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
91b3dc73
Commit
91b3dc73
authored
12 years ago
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2378 from eest/service_bsd_check
Dont exit in FreeBSD/NetBSD subclass in check mode
parents
0c00dcca
88a840e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
library/service
+0
-8
No files found.
library/service
View file @
91b3dc73
...
...
@@ -595,10 +595,6 @@ class FreeBsdService(Service):
self
.
rcconf_key
=
"
%
s_enable"
%
self
.
name
# FIXME: detect the enablement state rather than just running the command
if
self
.
module
.
check_mode
:
self
.
module
.
exit_json
(
changed
=
True
,
msg
=
"editing service enablement"
)
return
self
.
service_enable_rcconf
()
def
service_control
(
self
):
...
...
@@ -678,10 +674,6 @@ class NetBsdService(Service):
else
:
self
.
rcconf_value
=
"NO"
# FIXME: need to decide whether to run enablement command or not
if
self
.
module
.
check_mode
:
self
.
module
.
exit_json
(
changed
=
True
,
msg
=
"editing service enablement"
)
rcfiles
=
[
'/etc/rc.conf'
]
# Overkill?
for
rcfile
in
rcfiles
:
if
os
.
path
.
isfile
(
rcfile
):
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment