Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2014
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. @@ -539,6 +539,7 @@ Optional arguments:
  2. --delimiter Roll up items with the given delimiter. For containers
  3. only. See OpenStack Swift API documentation for what
  4. this means.
  5. + --limit limit
  6. '''.strip('\n')
  7.  
  8.  
  9. @@ -561,6 +562,9 @@ def st_list(parser, args, thread_manager):
  10. help='Roll up items with the given delimiter. '
  11. 'For containers only. See OpenStack Swift API documentation for '
  12. 'what this means.')
  13. + parser.add_option('-x', '--limit', dest='limit'
  14. + )
  15. +
  16. (options, args) = parse_args(parser, args)
  17. args = args[1:]
  18. if options.delimiter and not args:
  19. @@ -577,7 +581,7 @@ def st_list(parser, args, thread_manager):
  20. while True:
  21. if not args:
  22. items = \
  23. - conn.get_account(marker=marker, prefix=options.prefix)[1]
  24. + conn.get_account(marker=marker, limit=options.limit, prefix=options.prefix)[1]
  25. else:
  26. items = conn.get_container(
  27. args[0], marker=marker,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement