modules.pkg:__virtual__ return err msg

This commit is contained in:
Syed Ali 2015-12-02 17:08:50 -08:00 committed by syedaali
parent f5e24872f1
commit 06b76b8133

View File

@ -84,7 +84,7 @@ def __virtual__():
return __virtualname__
elif __grains__.get('os_family', False) == 'Debian':
return __virtualname__
return False
return (False, 'The pkg module could not be loaded: unsupported OS family')
def __init__(opts):