From 06b76b8133223391ae63f5af37c9fa0b98face7a Mon Sep 17 00:00:00 2001 From: Syed Ali Date: Wed, 2 Dec 2015 17:08:50 -0800 Subject: [PATCH] modules.pkg:__virtual__ return err msg --- salt/modules/aptpkg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/modules/aptpkg.py b/salt/modules/aptpkg.py index 18a120eb19..45b72d8717 100644 --- a/salt/modules/aptpkg.py +++ b/salt/modules/aptpkg.py @@ -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):