mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
modules.pkg:__virtual__ return err msg
This commit is contained in:
parent
f5e24872f1
commit
06b76b8133
@ -84,7 +84,7 @@ def __virtual__():
|
|||||||
return __virtualname__
|
return __virtualname__
|
||||||
elif __grains__.get('os_family', False) == 'Debian':
|
elif __grains__.get('os_family', False) == 'Debian':
|
||||||
return __virtualname__
|
return __virtualname__
|
||||||
return False
|
return (False, 'The pkg module could not be loaded: unsupported OS family')
|
||||||
|
|
||||||
|
|
||||||
def __init__(opts):
|
def __init__(opts):
|
||||||
|
Loading…
Reference in New Issue
Block a user