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:
MD NADEEM 2016-01-21 12:01:55 +05:30
parent d8ad746151
commit 4f462ed451
1 changed files with 1 additions and 1 deletions

View File

@ -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',