summaryrefslogtreecommitdiff
path: root/swiftclient/shell.py
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2022-08-23 00:37:52 +0000
committerGerrit Code Review <review@openstack.org>2022-08-23 00:37:52 +0000
commit02509acc71e6f609b6a9f3c8055479872bedaf2a (patch)
tree4285256ea7b4a71ab588057f0024ab8055af4d8b /swiftclient/shell.py
parent249201f7eab8ed07a89f7e8f6831e7b358e1f4f7 (diff)
parentf1858d89e0e1889664ced654755c508f47a0c1f3 (diff)
downloadpython-swiftclient-02509acc71e6f609b6a9f3c8055479872bedaf2a.tar.gz
Merge "Add option to skip container PUT during upload"
Diffstat (limited to 'swiftclient/shell.py')
-rwxr-xr-xswiftclient/shell.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/swiftclient/shell.py b/swiftclient/shell.py
index 5bcff7f..4bcb251 100755
--- a/swiftclient/shell.py
+++ b/swiftclient/shell.py
@@ -978,8 +978,9 @@ def st_copy(parser, args, output_manager, return_parser=False):
st_upload_options = '''[--changed] [--skip-identical] [--segment-size <size>]
[--segment-container <container>] [--leave-segments]
[--object-threads <thread>] [--segment-threads <threads>]
- [--meta <name:value>] [--header <header>] [--use-slo]
- [--ignore-checksum] [--object-name <object-name>]
+ [--meta <name:value>] [--header <header>]
+ [--use-slo] [--ignore-checksum] [--skip-container-put]
+ [--object-name <object-name>]
<container> <file_or_directory> [<file_or_directory>] [...]
'''
@@ -1025,11 +1026,13 @@ Optional arguments:
--use-slo When used in conjunction with --segment-size it will
create a Static Large Object instead of the default
Dynamic Large Object.
+ --ignore-checksum Turn off checksum validation for uploads.
+ --skip-container-put Assume all necessary containers already exist; don't
+ automatically try to create them.
--object-name <object-name>
Upload file and name object to <object-name> or upload
dir and use <object-name> as object prefix instead of
folder name.
- --ignore-checksum Turn off checksum validation for uploads.
'''.strip('\n')
@@ -1045,6 +1048,10 @@ def st_upload(parser, args, output_manager, return_parser=False):
default=False, help='Skip uploading files that are identical on '
'both sides.')
parser.add_argument(
+ '--skip-container-put', action='store_true', dest='skip_container_put',
+ default=False, help='Assume all necessary containers already exist; '
+ "don't automatically try to create them.")
+ parser.add_argument(
'-S', '--segment-size', dest='segment_size', help='Upload files '
'in segments no larger than <size> (in Bytes) and then create a '
'"manifest" file that will download all the segments as if it were '