community.general/lib/ansible/modules/system
David Wittman 15235a718d Fix bug with upstart detection
Upstart scripts are being incorrectly identified as SysV init scripts
due to a logic error in the `service` module.

Because upstart uses multiple commands (`/sbin/start`, `/sbin/stop`,
etc.) for managing service state, the codepath for upstart sets
`self.svc_cmd` to an empty string on line 451.

Empty strings are considered a non-truthy value in Python, so
conditionals which are checking the state of `self.svc_cmd` should
explicitly compare it to `None` to avoid overlooking the fact that
the service may be controlled by an upstart script.
2016-12-08 11:22:52 -05:00
..
__init__.py package files 2016-12-08 11:22:22 -05:00
authorized_key.py Fix authorized_key module crashing when given an invalid key 2016-12-08 11:22:50 -05:00
cron.py Update cron example for setting to run twice a day 2016-12-08 11:22:31 -05:00
group.py Add basic support for OSX groups. 2016-12-08 11:22:42 -05:00
hostname.py Add Linuxmint support in hostname module 2016-12-08 11:22:41 -05:00
mount.py Setting the actual passno and dump defaults, and warning user of consequences in nulling 2016-12-08 11:22:48 -05:00
ping.py file extensions! 2016-12-08 11:22:22 -05:00
seboolean.py file extensions! 2016-12-08 11:22:22 -05:00
selinux.py Set selinux state to 'permissive' for state=disabled 2016-12-08 11:22:35 -05:00
service.py Fix bug with upstart detection 2016-12-08 11:22:52 -05:00
setup.py file extensions! 2016-12-08 11:22:22 -05:00
sysctl.py now handles non string values for sysctl 2016-12-08 11:22:38 -05:00
user.py Added HP-UX subclass 2016-12-08 11:22:47 -05:00