From 232d5fe1397751efd110285fe205df483c68b67b Mon Sep 17 00:00:00 2001 From: abikouo Date: Fri, 7 May 2021 09:49:52 +0200 Subject: [PATCH] sanity --- plugins/modules/aws_s3.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/plugins/modules/aws_s3.py b/plugins/modules/aws_s3.py index 9c4f1cd5c09..20c9d4512b0 100644 --- a/plugins/modules/aws_s3.py +++ b/plugins/modules/aws_s3.py @@ -328,13 +328,6 @@ - prefix1/ - prefix1/key1 - prefix1/key2 -copy_object_result: - description: result of the copy operation. - returned: (for copy operation) - type: dict - sample: - e_tag: eb354219cd15668c7a70221cda545c82 - last_modified: 2021-05-06T15:42:32+00:00 ''' import mimetypes @@ -351,7 +344,6 @@ from ansible.module_utils.basic import to_text from ansible.module_utils.basic import to_native from ansible.module_utils.six.moves.urllib.parse import urlparse -from ansible.module_utils.common.dict_transformations import camel_dict_to_snake_dict from ..module_utils.core import AnsibleAWSModule from ..module_utils.core import is_boto3_error_code @@ -712,7 +704,7 @@ def copy_object_to_bucket(module, s3, bucket, obj, encrypt, metadata, validate, module.warn("PutObjectAcl is not implemented by your storage provider. Set the permissions parameters to the empty list to avoid this warning") except (botocore.exceptions.BotoCoreError, botocore.exceptions.ClientError) as e: # pylint: disable=duplicate-except module.fail_json_aws(e, msg="Failed while copying object %s from bucket %s." % (obj, module.params['copy_src'].get('Bucket'))) - module.exit_json(msg="COPY operation complete", changed=True, copy_object_result=camel_dict_to_snake_dict(copy_result['CopyObjectResult'])) + module.exit_json(msg="Object copied from bucket %s to bucket %s." % (bucketsrc['Bucket'], bucket), changed=True) def is_fakes3(s3_url):