diff options
author | PAPAMICA <mickael@papamica.com> | 2022-01-12 09:57:05 +0100 |
---|---|---|
committer | Mickael Asseline <mickael@papamica.com> | 2022-01-12 10:19:50 +0100 |
commit | 4989d94663b59eac34b7cd5dfaa7e673fc73e862 (patch) | |
tree | 8955903cb8569a77b7098aeffebee561e5bfa459 /examples/copy.py | |
parent | 3f5d5b0252b3690af1e6577bf6584efe506f15fe (diff) | |
download | python-swiftclient-4989d94663b59eac34b7cd5dfaa7e673fc73e862.tar.gz |
Fix copy.py example.3.13.1
Change-Id: Id2a58a085f58b0bf17eda636593bb482d614c245
Diffstat (limited to 'examples/copy.py')
-rw-r--r-- | examples/copy.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/copy.py b/examples/copy.py index e928db4..808cbd5 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"] ) |