mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fix error message (#16264)
The error was: TypeError: fail_json() takes exactly 1 argument (2 given)
This commit is contained in:
parent
07846f7bec
commit
e1d248dddf
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ def get_aws_connection_info(module, boto3=False):
|
|||
# here we don't need to make an additional call, will default to 'us-east-1' if the below evaluates to None.
|
||||
region = botocore.session.get_session().get_config_variable('region')
|
||||
else:
|
||||
module.fail_json("Boto3 is required for this module. Please install boto3 and try again")
|
||||
module.fail_json(msg="Boto3 is required for this module. Please install boto3 and try again")
|
||||
|
||||
if not security_token:
|
||||
if 'AWS_SECURITY_TOKEN' in os.environ:
|
||||
|
|
Loading…
Reference in a new issue