No index must be signaled using None.

This commit is contained in:
Roland Hedberg
2014-09-22 10:37:08 +02:00
parent b105b1fa2f
commit e95f6a9c27

View File

@@ -717,7 +717,7 @@ class MetadataStore(object):
DiscoveryResponse.c_tag),
binding)
def attribute_requirement(self, entity_id, index=0):
def attribute_requirement(self, entity_id, index=None):
for _md in self.metadata.values():
if entity_id in _md:
return _md.attribute_requirement(entity_id, index)