diff options
| author | Jian Zhang <jian.zhang@intel.com> | 2013-02-24 19:04:39 -0800 |
|---|---|---|
| committer | Jian Zhang <jian.zhang@intel.com> | 2013-02-24 19:10:53 -0800 |
| commit | ec38637a35dccdfda16efeab7866dc147dc380b9 (patch) | |
| tree | 8e6cb2ce5abb7cd7ebcbe42d9cbd0d6a6c89f503 /bin | |
| parent | 4ac431a9a2b6379f9ab663f8a330e2d898e9b077 (diff) | |
| download | python-swiftclient-ec38637a35dccdfda16efeab7866dc147dc380b9.tar.gz | |
Added "/" check when list containers.
If there is a "/" in container name, print usage.
Fixs bug 1121897.
Change-Id: I633b5b7ff3a8dbc249ddd3c65439dd46c7d93b4a
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/swift | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
