summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-10-17 16:59:03 +0000
committerGerrit Code Review <review@openstack.org>2013-10-17 16:59:03 +0000
commitefde2378c2dab33989112232d2a6bc6d0a72db48 (patch)
treed50392925bf52800db986852cc190eb02fa820a1 /bin
parente08ec3ab8a28facc95977fc25c7e1e5381507591 (diff)
parentafa1f9f76d69471be7d97f3792bd5bdf9add3685 (diff)
downloadpython-swiftclient-efde2378c2dab33989112232d2a6bc6d0a72db48.tar.gz
Merge "user defined headers added to swift post queries"
Diffstat (limited to 'bin')
-rwxr-xr-xbin/swift2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/swift b/bin/swift
index 10bceca..74aa606 100755
--- a/bin/swift
+++ b/bin/swift
@@ -807,6 +807,7 @@ def st_post(parser, args, thread_manager):
if not args:
headers = split_headers(
options.meta, 'X-Account-Meta-', thread_manager)
+ headers.update(split_headers(options.header, '', thread_manager))
try:
conn.post_account(headers=headers)
except ClientException as err:
@@ -820,6 +821,7 @@ def st_post(parser, args, thread_manager):
(args[0].replace('/', ' ', 1), args[0])
headers = split_headers(options.meta, 'X-Container-Meta-',
thread_manager)
+ headers.update(split_headers(options.header, '', thread_manager))
if options.read_acl is not None:
headers['X-Container-Read'] = options.read_acl
if options.write_acl is not None: