Skip to content

Commit 9ae20ab

Browse files
authored
Remove deprecated boto3 parameter (#2443)
SUMMARY Since we dropped support for the old boto SDK (#630) the boto3 parameter for get_aws_region() and get_aws_connection_info() has done nothing. This finally removes the parameter (deprecated #2047) ISSUE TYPE Feature Pull Request COMPONENT NAME plugins/module_utils/botocore.py ADDITIONAL INFORMATION Reviewed-by: Bikouo Aubin Reviewed-by: Alina Buzachis
1 parent 995bf94 commit 9ae20ab

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
breaking_changes:
3+
- module_utils.botocore - drop deprecated ``boto3`` parameter for ``get_aws_region()`` and ``get_aws_connection_info()``, this parameter has had no effect since release 4.0.0 (https://github.com/ansible-collections/amazon.aws/pull/2443).

plugins/module_utils/botocore.py

-16
Original file line numberDiff line numberDiff line change
@@ -228,15 +228,7 @@ def _aws_region(params: Dict) -> Optional[str]:
228228

229229
def get_aws_region(
230230
module: AnsibleAWSModule,
231-
boto3: Optional[bool] = None,
232231
) -> Optional[str]: # pylint: disable=redefined-outer-name
233-
if boto3 is not None:
234-
module.deprecate(
235-
"get_aws_region(): the boto3 parameter will be removed in a release after 2025-05-01. "
236-
"The parameter has been ignored since release 4.0.0.",
237-
date="2025-05-01",
238-
collection_name="amazon.aws",
239-
)
240232
try:
241233
return _aws_region(module.params)
242234
except AnsibleBotocoreError as e:
@@ -302,15 +294,7 @@ def _aws_connection_info(params: Dict) -> Tuple[Optional[str], Optional[str], Di
302294

303295
def get_aws_connection_info(
304296
module: AnsibleAWSModule,
305-
boto3: Optional[bool] = None,
306297
) -> Tuple[Optional[str], Optional[str], Dict]: # pylint: disable=redefined-outer-name
307-
if boto3 is not None:
308-
module.deprecate(
309-
"get_aws_connection_info(): the boto3 parameter will be removed in a release after 2025-05-01. "
310-
"The parameter has been ignored since release 4.0.0.",
311-
date="2025-05-01",
312-
collection_name="amazon.aws",
313-
)
314298
try:
315299
return _aws_connection_info(module.params)
316300
except AnsibleBotocoreError as e:

0 commit comments

Comments
 (0)