modules.junos: __virtual__ return err msg

This commit is contained in:
darien-hirotsu 2015-12-02 18:07:11 -08:00
parent f5e24872f1
commit 873ebd0d5e

View File

@ -44,7 +44,8 @@ def __virtual__():
if HAS_JUNOS and 'proxy' in __opts__: if HAS_JUNOS and 'proxy' in __opts__:
return __virtualname__ return __virtualname__
else: else:
return False return (False, 'The junos module could not be \
loaded: junos-eznc or proxy could not be loaded.')
def facts_refresh(): def facts_refresh():