fixes check mode for Ubuntu 14.04

reviewable/pr18780/r1
Jonathan Mainguy 11 years ago
parent b5399d3446
commit 442b6a2067

@ -765,6 +765,9 @@ class LinuxService(Service):
else:
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))
if rc != 0:
if err:

Loading…
Cancel
Save