Skip to content

Commit

Permalink
Apply flynt
Browse files Browse the repository at this point in the history
  • Loading branch information
tremble committed Oct 16, 2023
1 parent 9d66903 commit 3fbb888
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/modules/s3_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -1381,9 +1381,9 @@ def s3_object_do_copy(module, connection, connection_v4, s3_vars):
changed |= updated
number_keys_updated += 1 if updated else 0

msg = "object(s) from buckets '{0}' and '{1}' are the same.".format(src_bucket, s3_vars["bucket"])
msg = f"object(s) from buckets '{src_bucket}' and '{s3_vars['bucket']}' are the same."
if number_keys_updated:
msg = "{0} copied into bucket '{1}'".format(number_keys_updated, s3_vars["bucket"])
msg = f"{number_keys_updated} copied into bucket '{s3_vars['bucket']}'"
module.exit_json(changed=changed, msg=msg)
else:
# copy single object from source bucket into destination bucket
Expand Down

0 comments on commit 3fbb888

Please sign in to comment.