Fix bug:xrange() issue with py3.x
In python3.x, there is no method named xrange(), it has replaced by range(),which is equal to xrange() in python2.x. so we must fix this issue. Closes-Bug: #1268439 Change-Id: I66f0a7f248ad77bf06e96ea7cfcb7ef5f050b13a
This commit is contained in:
parent
d8ad746151
commit
4f462ed451
@ -74,7 +74,7 @@ def run(args):
|
||||
args.num_replicas,
|
||||
args.min_part_hours])
|
||||
|
||||
for i in xrange(len(hosts)):
|
||||
for i in range(len(hosts)):
|
||||
run_cmd(['swift-ring-builder',
|
||||
args.ring_file,
|
||||
'add',
|
||||
|
Loading…
Reference in New Issue
Block a user