Added "/" check when list containers.
If there is a "/" in container name, print usage. Fixs bug 1121897. Change-Id: I633b5b7ff3a8dbc249ddd3c65439dd46c7d93b4a
This commit is contained in:
parent
4ac431a9a2
commit
ec38637a35
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user