Stop using duplicate dev IDs in write_fake_ring

This would cause some weird issues where get_more_nodes() would actually
yield out something, despite us only having two drives.

Change-Id: Ibf658d69fce075c76c0870a542348f220376c87a
This commit is contained in:
Tim Burke 2019-02-08 09:36:35 -08:00
parent 6c6bb80e40
commit 8a6159f67b

View File

@ -291,7 +291,7 @@ def write_fake_ring(path, *devs):
"""
dev1 = {'id': 0, 'zone': 0, 'device': 'sda1', 'ip': '127.0.0.1',
'port': 6200}
dev2 = {'id': 0, 'zone': 0, 'device': 'sdb1', 'ip': '127.0.0.1',
dev2 = {'id': 1, 'zone': 0, 'device': 'sdb1', 'ip': '127.0.0.1',
'port': 6200}
dev1_updates, dev2_updates = devs or ({}, {})