mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
modules.debian_service: __virtual__ return err msg.
Updated message in debian_service module when return False if os family is not supported or systemd is running.
This commit is contained in:
parent
62c9514108
commit
6a62295561
@ -36,7 +36,8 @@ def __virtual__():
|
||||
'''
|
||||
if __grains__['os'] in ('Debian', 'Raspbian', 'Devuan') and not salt.utils.systemd.booted(__context__):
|
||||
return __virtualname__
|
||||
return False
|
||||
return (False, 'The debian_service module could not be loaded: '
|
||||
'unsupported OS family and/or systemd running.')
|
||||
|
||||
|
||||
def _service_cmd(*args):
|
||||
|
Loading…
Reference in New Issue
Block a user