From 9c4534384593bf826924bfdf177a944a07bda641 Mon Sep 17 00:00:00 2001
From: Tim Burke <tim.burke@gmail.com>
Date: Thu, 23 Mar 2023 09:03:05 -0700
Subject: [PATCH] shell: Allow uploads from stdin to specify --use-dlo

Change-Id: Id6818ab416380242cc215a980a541fc59109c69c
---
 swiftclient/shell.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/swiftclient/shell.py b/swiftclient/shell.py
index 69f9481b..c5fb2190 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