Skip to content

Commit

Permalink
Fix rds_export_task
Browse files Browse the repository at this point in the history
Signed-off-by: Alina Buzachis <[email protected]>
  • Loading branch information
alinabuzachis committed Sep 27, 2022
1 parent fcb0aaf commit 7612959
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugins/modules/rds_export_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
extends_documentation_fragment:
- amazon.aws.aws
- amazon.aws.ec2
- amazon.aws.aws_boto3
- amazon.aws.boto3
"""

EXAMPLES = r"""
Expand Down Expand Up @@ -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():
Expand Down
5 changes: 3 additions & 2 deletions tests/integration/targets/rds_export_task/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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'
export_task_id: '{{ _resource_prefix }}-rds-export-task'

0 comments on commit 7612959

Please sign in to comment.