~ubuntu-branches/ubuntu/trusty/swift/trusty-updates

« back to all changes in this revision

Viewing changes to bin/swift-dispersion-populate

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2013-01-28 09:40:30 UTC
  • mfrom: (1.2.16)
  • Revision ID: package-import@ubuntu.com-20130128094030-aetz57x2qz9ye2d4
Tags: 1.7.6-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
    account = url.rsplit('/', 1)[1]
102
102
    connpool = Pool(max_size=concurrency)
103
103
    connpool.create = lambda: Connection(conf['auth_url'],
104
 
                                conf['auth_user'], conf['auth_key'],
105
 
                                retries=retries,
106
 
                                preauthurl=url, preauthtoken=token)
 
104
                                         conf['auth_user'], conf['auth_key'],
 
105
                                         retries=retries,
 
106
                                         preauthurl=url, preauthtoken=token)
107
107
 
108
108
    container_ring = Ring(swift_dir, ring_name='container')
109
109
    parts_left = dict((x, x) for x in xrange(container_ring.partition_count))