Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @@ -539,6 +539,7 @@ Optional arguments:
- --delimiter Roll up items with the given delimiter. For containers
- only. See OpenStack Swift API documentation for what
- this means.
- + --limit limit
- '''.strip('\n')
- @@ -561,6 +562,9 @@ def st_list(parser, args, thread_manager):
- help='Roll up items with the given delimiter. '
- 'For containers only. See OpenStack Swift API documentation for '
- 'what this means.')
- + parser.add_option('-x', '--limit', dest='limit'
- + )
- +
- (options, args) = parse_args(parser, args)
- args = args[1:]
- if options.delimiter and not args:
- @@ -577,7 +581,7 @@ def st_list(parser, args, thread_manager):
- while True:
- if not args:
- items = \
- - conn.get_account(marker=marker, prefix=options.prefix)[1]
- + conn.get_account(marker=marker, limit=options.limit, prefix=options.prefix)[1]
- else:
- items = conn.get_container(
- args[0], marker=marker,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement