modules.netaddress: __virtual__ return err msg.

Updated message when netaddr library is not installed.
This commit is contained in:
abednarik 2015-12-27 19:50:32 -03:00
parent 9dfcf78c96
commit 3582be2db3

View File

@ -23,7 +23,8 @@ def __virtual__():
Only load if netaddr library exist.
'''
if not HAS_NETADDR:
return False
return (False, 'The netaddress execution module cannot be loaded: '
'netaddr python library is not installed.')
return __virtualname__