Commit dc33283e authored by Łukasz Nowak's avatar Łukasz Nowak

In case of certificates being used trust first entry.

parent b25332eb
......@@ -226,7 +226,7 @@ class NetworkcacheClient(object):
if len(filtered_data_list) == 0:
raise DirectoryNotFound('Could not find a trustable entry.')
if len(filtered_data_list) > 1:
if len(filtered_data_list) > 1 && self.signature_certificate_list is None:
raise DirectoryNotFound('Too many entries for a given key %r. ' \
'Entries: %s.' % (key, str(data_list)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment