summaryrefslogtreecommitdiff
path: root/swift/common/ring/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'swift/common/ring/utils.py')
-rw-r--r--swift/common/ring/utils.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/swift/common/ring/utils.py b/swift/common/ring/utils.py
index afe1a16a4..4887b6b87 100644
--- a/swift/common/ring/utils.py
+++ b/swift/common/ring/utils.py
@@ -58,8 +58,8 @@ def build_tier_tree(devices):
(1,): [(1, 192.168.1.1:6000),
(1, 192.168.1.2:6000)],
- (2,): [(1, 192.168.2.1:6000),
- (1, 192.168.2.2:6000)],
+ (2,): [(2, 192.168.2.1:6000),
+ (2, 192.168.2.2:6000)],
(1, 192.168.1.1:6000): [(1, 192.168.1.1:6000, 0),
(1, 192.168.1.1:6000, 1),
@@ -67,12 +67,12 @@ def build_tier_tree(devices):
(1, 192.168.1.2:6000): [(1, 192.168.1.2:6000, 3),
(1, 192.168.1.2:6000, 4),
(1, 192.168.1.2:6000, 5)],
- (2, 192.168.2.1:6000): [(1, 192.168.2.1:6000, 6),
- (1, 192.168.2.1:6000, 7),
- (1, 192.168.2.1:6000, 8)],
- (2, 192.168.2.2:6000): [(1, 192.168.2.2:6000, 9),
- (1, 192.168.2.2:6000, 10),
- (1, 192.168.2.2:6000, 11)],
+ (2, 192.168.2.1:6000): [(2, 192.168.2.1:6000, 6),
+ (2, 192.168.2.1:6000, 7),
+ (2, 192.168.2.1:6000, 8)],
+ (2, 192.168.2.2:6000): [(2, 192.168.2.2:6000, 9),
+ (2, 192.168.2.2:6000, 10),
+ (2, 192.168.2.2:6000, 11)],
}
:devices: device dicts from which to generate the tree