From 873ebd0d5e372125dd43f00cf05b9ab08896d5a0 Mon Sep 17 00:00:00 2001 From: darien-hirotsu Date: Wed, 2 Dec 2015 18:07:11 -0800 Subject: [PATCH] modules.junos: __virtual__ return err msg --- salt/modules/junos.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/salt/modules/junos.py b/salt/modules/junos.py index 6160e9a12b..83de84023c 100644 --- a/salt/modules/junos.py +++ b/salt/modules/junos.py @@ -44,7 +44,8 @@ def __virtual__(): if HAS_JUNOS and 'proxy' in __opts__: return __virtualname__ else: - return False + return (False, 'The junos module could not be \ + loaded: junos-eznc or proxy could not be loaded.') def facts_refresh():