add_devices | index /Users/karl/code/swift_management/add_devices.py

`Add devices
Add formatted drives to a swift ring.
--master-node: host that master api runs on.
--ring-type: ring to add devices to
--drive-list: file with newline separated devices
hosts: hosts of devices to add
Will automatically add all devices in the drive list file on all of the listed hosts
to the designated swift ring. All requests get routed to the master swift node.`

Modules
`` |  |
argparse | json | requests | sys

Functions
`` |  | get_sizes(host) `Return a dictionary of device names to sizes of those devices, for a given node.`

Data
`` |  | DEFAULT_MASTER_NODE = 'swift-proxy-001.sfo01.justin.tv' HEADERS = {'Accept': 'text/plain', 'Content-type': 'application/json'}