summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/copy.py6
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"]
)