friendly message when requirement is not installed (#42321)

* friendly message when requirement is not installed
This commit is contained in:
Victor da Costa 2018-08-24 16:08:24 +02:00 committed by John R Barker
parent 86147d598f
commit 53405f673c

View file

@ -421,7 +421,7 @@ def main():
)
if not HAS_BOTO:
module.fail_json(msg='boto 2.9+ required for this module')
module.fail_json(msg='`boto` 2.9+ is required for this module. Try: pip install `boto` --upgrade')
bucket = module.params.get('bucket')
obj = module.params.get('object')