summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan S. Brown <sb@ryansb.com>2016-08-16 07:56:20 -0400
committerRyan S. Brown <sb@ryansb.com>2016-08-16 07:56:20 -0400
commit30268f6bd060bbb980f848b0de250ddbc8f60c5c (patch)
tree7748733dea5c7abd9fbbc8c18e6c676f6002e3e1
parent124c1e3d27d6c697cd06606f21c93c2bdb713df0 (diff)
downloadansible-30268f6bd060bbb980f848b0de250ddbc8f60c5c.tar.gz
Pass keyword arguments from modules to _boto3_conn
-rw-r--r--lib/ansible/module_utils/ec2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/module_utils/ec2.py b/lib/ansible/module_utils/ec2.py
index aabf78414f..c86477020e 100644
--- a/lib/ansible/module_utils/ec2.py
+++ b/lib/ansible/module_utils/ec2.py
@@ -56,7 +56,7 @@ class AnsibleAWSError(Exception):
def boto3_conn(module, conn_type=None, resource=None, region=None, endpoint=None, **params):
try:
- return _boto3_conn(conn_type=None, resource=None, region=None, endpoint=None, **params)
+ return _boto3_conn(conn_type=conn_type, resource=resource, region=region, endpoint=endpoint, **params)
except ValueError:
module.fail_json(msg='There is an issue in the code of the module. You must specify either both, resource or client to the conn_type parameter in the boto3_conn function call')