Is the bug fixed? as I see that the list is not empty(or I'm doing something wrong)
>>> from swift.common.storage_policy import POLICIES >>> p = POLICIES[1] >>> p StoragePolicy(1, ['silver'], is_default=False, is_deprecated=False, policy_type='replication') >>> p.load_ring('/etc/swift') >>> p.object_ring.get_part_nodes(63) [{'index': 0, u'replication_port': 6020, u'weight': 1.0, u'zone': 2, u'ip': u'127.0.0.1', u'region': 1, u'id': 1, u'replication_ip': u'127.0.0.1', u'meta': u'', u'device': u'sdb2', u'port': 6020}, {'index': 1, u 'replication_port': 6030, u'weight': 1.0, u'zone': 3, u'ip': u'127.0.0.1', u'region': 1, u'id': 2, u'replication_ip': u'127.0.0.1', u'meta': u'', u'device': u'sdb3', u'port': 6030}] >>>
Is the bug fixed? as I see that the list is not empty(or I'm doing something wrong)
>>> from swift.common. storage_ policy import POLICIES False, policy_ type='replicati on') ring('/ etc/swift' ) ring.get_ part_nodes( 63) port': 6020, u'weight': 1.0, u'zone': 2, u'ip': u'127.0.0.1', u'region': 1, u'id': 1, u'replication_ip': u'127.0.0.1', u'meta': u'', u'device': u'sdb2', u'port': 6020}, {'index': 1, u
>>> p = POLICIES[1]
>>> p
StoragePolicy(1, ['silver'], is_default=False, is_deprecated=
>>> p.load_
>>> p.object_
[{'index': 0, u'replication_
'replication_port': 6030, u'weight': 1.0, u'zone': 3, u'ip': u'127.0.0.1', u'region': 1, u'id': 2, u'replication_ip': u'127.0.0.1', u'meta': u'', u'device': u'sdb3', u'port': 6030}]
>>>