Skip to content

Commit

Permalink
sanity
Browse files Browse the repository at this point in the history
  • Loading branch information
abikouo committed May 25, 2021
1 parent 8d89ed6 commit 232d5fe
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions plugins/modules/aws_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 232d5fe

Please sign in to comment.