Added reasoning why boto_cloudwatch.py cannot be loaded.

This commit is contained in:
Keith 2015-11-05 14:10:25 -07:00 committed by rallytime
parent cf79722260
commit 3b59cfae5f

View file

@ -74,7 +74,7 @@ def __virtual__():
Only load if boto libraries exist.
'''
if not HAS_BOTO:
return False
return (False, 'The boto_cloudwatch module cannot be loaded: boto libraries are unavailable.')
__utils__['boto.assign_funcs'](__name__, 'cloudwatch',
module='ec2.cloudwatch')
return True