Merge pull request #29899 from abednarik/virtual_ret_pkgng_module

modules.pkgng: __virtual__ return err msg.
This commit is contained in:
Mike Place 2015-12-21 13:44:11 -07:00
commit ebf0911208

View File

@ -66,7 +66,9 @@ def __virtual__():
log.debug('Configuration option \'providers:pkg\' is set to ' log.debug('Configuration option \'providers:pkg\' is set to '
'\'pkgng\', using \'pkgng\' in favor of \'freebsdpkg\'.') '\'pkgng\', using \'pkgng\' in favor of \'freebsdpkg\'.')
return __virtualname__ return __virtualname__
return False return (False,
'The pkgng execution module cannot be loaded: only available '
'on FreeBSD 10 or FreeBSD 9 with providers.pkg set to pkgng.')
def _pkg(jail=None, chroot=None): def _pkg(jail=None, chroot=None):