Files
283 lines
11 KiB
Plaintext
283 lines
11 KiB
Plaintext
Updated to use standard shebang and explicitly flush output; added deprecation warning to stats.conf
#!/usr/bin/env python
#
import traceback
from time import time
from eventlet import GreenPool, patcher, sleep
from swift.common.ring import Ring
global retries_done
retries_done += conn.attempts - 1
headers={'x-object-meta-dispersion': obj})
Updated to use standard shebang and explicitly flush output; added deprecation warning to stats.conf
stdout.flush()
c = ConfigParser()
swift_dir = conf.get('swift_dir', '/etc/swift')
retries = int(conf.get('retries', 5))
url, token = get_auth(conf['auth_url'], conf['auth_user'],
account = url.rsplit('/', 1)[1]