Add return messages on boto library load failure

return false w/ reason on failure of boto library load
This commit is contained in:
michael guldan 2015-12-04 08:39:26 -08:00
parent 18bd8903cd
commit 7e4a6d9df8

View file

@ -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