Skip to content

Instantly share code, notes, and snippets.

@cschwede
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cschwede/4c60f89a86bd238d309a to your computer and use it in GitHub Desktop.
Save cschwede/4c60f89a86bd238d309a to your computer and use it in GitHub Desktop.
Print OpenStack Swift ring file data
import pprint
import sys
from swift.common.ring import RingBuilder
builder = RingBuilder.load(sys.argv[1])
ring = builder.to_dict()
pp = pprint.PrettyPrinter(indent=4)
pp.pprint(ring)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment