summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Burke <tim.burke@gmail.com>2023-03-23 09:03:05 -0700
committerTim Burke <tim.burke@gmail.com>2023-03-23 09:05:45 -0700
commit9c4534384593bf826924bfdf177a944a07bda641 (patch)
treeb0799321b61cbdc840746f861eaaa84f360b8aa4
parent31c279ff0ea0d1ede1a118d7189dcd009c14e23a (diff)
downloadpython-swiftclient-9c4534384593bf826924bfdf177a944a07bda641.tar.gz
shell: Allow uploads from stdin to specify --use-dlo
Change-Id: Id6818ab416380242cc215a980a541fc59109c69c
-rwxr-xr-xswiftclient/shell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/swiftclient/shell.py b/swiftclient/shell.py
index 69f9481..c5fb219 100755
--- a/swiftclient/shell.py
+++ b/swiftclient/shell.py
@@ -1168,7 +1168,7 @@ def st_upload(parser, args, output_manager, return_parser=False):
return
if from_stdin:
- if not options['use_slo']:
+ if options['use_slo'] is None:
options['use_slo'] = True
if not options['segment_size']:
options['segment_size'] = DEFAULT_STDIN_SEGMENT