mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Make aws_ses_identity module work when region is provided via environment or config. (#51627)
fixes #51531
This commit is contained in:
committed by
Sloane Hertel
parent
46f8bd47ce
commit
30aeab4709
@@ -215,7 +215,7 @@ notification_attributes:
|
||||
'''
|
||||
|
||||
from ansible.module_utils.aws.core import AnsibleAWSModule
|
||||
from ansible.module_utils.ec2 import camel_dict_to_snake_dict, AWSRetry
|
||||
from ansible.module_utils.ec2 import camel_dict_to_snake_dict, AWSRetry, get_aws_connection_info
|
||||
|
||||
import time
|
||||
|
||||
@@ -526,7 +526,7 @@ def main():
|
||||
state = module.params.get("state")
|
||||
|
||||
if state == 'present':
|
||||
region = module.params.get('region')
|
||||
region = get_aws_connection_info(module, boto3=True)[0]
|
||||
account_id = get_account_id(module)
|
||||
validate_params_for_identity_present(module)
|
||||
create_or_update_identity(connection, module, region, account_id)
|
||||
|
||||
Reference in New Issue
Block a user