Last active
August 29, 2015 14:18
-
-
Save cschwede/4c60f89a86bd238d309a to your computer and use it in GitHub Desktop.
Print OpenStack Swift ring file data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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