fixes check mode for Ubuntu 14.04
This commit is contained in:
parent
3e72a0657d
commit
20301427f8
1 changed files with 3 additions and 0 deletions
|
@ -784,6 +784,9 @@ class LinuxService(Service):
|
||||||
else:
|
else:
|
||||||
action = 'disable'
|
action = 'disable'
|
||||||
|
|
||||||
|
if self.module.check_mode:
|
||||||
|
rc = 0
|
||||||
|
return
|
||||||
(rc, out, err) = self.execute_command("%s %s %s" % (self.enable_cmd, self.name, action))
|
(rc, out, err) = self.execute_command("%s %s %s" % (self.enable_cmd, self.name, action))
|
||||||
if rc != 0:
|
if rc != 0:
|
||||||
if err:
|
if err:
|
||||||
|
|
Loading…
Reference in a new issue