mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
modules.netaddress: __virtual__ return err msg.
Updated message when netaddr library is not installed.
This commit is contained in:
parent
9dfcf78c96
commit
3582be2db3
@ -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__
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user