Skip to content

Commit

Permalink
modules.debconfmod: __virtual__ return err msg.
Browse files Browse the repository at this point in the history
Updated message in debconfmod module when return False if os family is not supported or
defconf-utils is not installed.
  • Loading branch information
abednarik committed Dec 22, 2015
1 parent 62c9514 commit 5e64cc7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions salt/modules/debconfmod.py
Expand Up @@ -28,10 +28,12 @@ def __virtual__():
is installed.
'''
if __grains__['os_family'] != 'Debian':
return False
return (False, 'The debconfmod module could not be loaded: '
'unsupported OS family')

if salt.utils.which('debconf-get-selections') is None:
return False
return (False, 'The debconfmod module could not be loaded: '
'debconf-utils is not installed.')

return __virtualname__

Expand Down

0 comments on commit 5e64cc7

Please sign in to comment.