mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add return messages on boto library load failure
return false w/ reason on failure of boto library load
This commit is contained in:
parent
18bd8903cd
commit
7e4a6d9df8
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ def __virtual__():
|
|||
Only load if boto libraries exist.
|
||||
'''
|
||||
if not HAS_BOTO:
|
||||
return False
|
||||
return (False, "The boto_elb module cannot be loaded: boto library not found")
|
||||
__utils__['boto.assign_funcs'](__name__, 'elb', module='ec2.elb')
|
||||
return True
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue