From d712ab905d2ba680c560d4c6c5ecb643637e3d19 Mon Sep 17 00:00:00 2001 From: abednarik Date: Mon, 21 Dec 2015 14:51:57 -0300 Subject: [PATCH] modules.pkgng: __virtual__ return err msg. Updated message in pkg module when return False depending on FreeBSD current release and providers configuration. --- salt/modules/pkgng.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/salt/modules/pkgng.py b/salt/modules/pkgng.py index 1851a7f52f..b7667c0219 100644 --- a/salt/modules/pkgng.py +++ b/salt/modules/pkgng.py @@ -66,7 +66,9 @@ def __virtual__(): log.debug('Configuration option \'providers:pkg\' is set to ' '\'pkgng\', using \'pkgng\' in favor of \'freebsdpkg\'.') 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):