From 4989d94663b59eac34b7cd5dfaa7e673fc73e862 Mon Sep 17 00:00:00 2001 From: PAPAMICA Date: Wed, 12 Jan 2022 09:57:05 +0100 Subject: [PATCH] Fix copy.py example. Change-Id: Id2a58a085f58b0bf17eda636593bb482d614c245 --- examples/copy.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/copy.py b/examples/copy.py index e928db4e..808cbd53 100644 --- a/examples/copy.py +++ b/examples/copy.py @@ -9,17 +9,17 @@ logger = logging.getLogger(__name__) with SwiftService() as swift: try: - obj = SwiftCopyObject("c", {"Destination": "/cont/d"}) + obj = SwiftCopyObject("c", {"destination": "/cont/d"}) for i in swift.copy( "cont", ["a", "b", obj], - {"meta": ["foo:bar"], "Destination": "/cc"}): + {"meta": ["foo:bar"], "destination": "/cc"}): if i["success"]: if i["action"] == "copy_object": print( "object %s copied from /%s/%s" % (i["destination"], i["container"], i["object"]) ) - if i["action"] == "create_container": + elif i["action"] == "create_container": print( "container %s created" % i["container"] )