From 4f462ed451f09422a331f68f7fde0cf6a27d8fc0 Mon Sep 17 00:00:00 2001 From: MD NADEEM Date: Thu, 21 Jan 2016 12:01:55 +0530 Subject: [PATCH] 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 --- docker/swift/swift-base/build-swift-ring.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/swift/swift-base/build-swift-ring.py b/docker/swift/swift-base/build-swift-ring.py index af20af7e68..7889ad4754 100644 --- a/docker/swift/swift-base/build-swift-ring.py +++ b/docker/swift/swift-base/build-swift-ring.py @@ -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',