summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-02-28 02:58:28 +0000
committerGerrit Code Review <review@openstack.org>2013-02-28 02:58:28 +0000
commit999e1c0f02ab4f697a0bf66c95f1744c86dc4523 (patch)
tree313453d3647709fb3343e58b396ff2e21717ddba /bin
parent974f530bdbcb2d94e4e9cce54c7c88915f342cb6 (diff)
parentec38637a35dccdfda16efeab7866dc147dc380b9 (diff)
downloadpython-swiftclient-999e1c0f02ab4f697a0bf66c95f1744c86dc4523.tar.gz
Merge "Added "/" check when list containers."
Diffstat (limited to 'bin')
-rwxr-xr-xbin/swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/swift b/bin/swift
index f044a4a..fd26fd3 100755
--- a/bin/swift
+++ b/bin/swift
@@ -527,7 +527,7 @@ def st_list(parser, args, print_queue, error_queue):
args = args[1:]
if options.delimiter and not args:
exit('-d option only allowed for container listings')
- if len(args) > 1:
+ if len(args) > 1 or len(args) == 1 and args[0].find('/') >= 0:
error_queue.put('Usage: %s [options] %s' %
(basename(argv[0]), st_list_help))
return