diff --git a/plugins/modules/rds_export_task.py b/plugins/modules/rds_export_task.py index e331736ed42..8295483cc4e 100644 --- a/plugins/modules/rds_export_task.py +++ b/plugins/modules/rds_export_task.py @@ -73,7 +73,7 @@ extends_documentation_fragment: - amazon.aws.aws - amazon.aws.ec2 -- amazon.aws.aws_boto3 +- amazon.aws.boto3 """ EXAMPLES = r""" @@ -117,7 +117,7 @@ def describe_export_task(): except (botocore.exceptions.ClientError, botocore.exceptions.BotoCoreError) as e: # pylint: disable=duplicate-except module.fail_json_aws(e, msg="Couldn't describe export task") - return result + return result['ExportTasks'] def start_export_task(): diff --git a/tests/integration/targets/rds_export_task/defaults/main.yml b/tests/integration/targets/rds_export_task/defaults/main.yml index aafb48b8d1e..665398ef74e 100644 --- a/tests/integration/targets/rds_export_task/defaults/main.yml +++ b/tests/integration/targets/rds_export_task/defaults/main.yml @@ -1,6 +1,7 @@ --- # defaults file for rds_export_task -_resource_prefix: 'ansible-test-{{ tiny_prefix }}' +#_resource_prefix: 'ansible-test-{{ tiny_prefix }}' +_resource_prefix: 'ansible-test-exp' # Create RDS instance instance_id: '{{ _resource_prefix }}-rds-instance' @@ -24,4 +25,4 @@ kms_key_alias: '{{ _resource_prefix }}-kms' bucket_name: '{{ _resource_prefix }}-s3-bucket' # Create export task -export_task_id: '{{ _resource_prefix }}-rds-export-task' \ No newline at end of file +export_task_id: '{{ _resource_prefix }}-rds-export-task'