Changed this assignment to have the "signers" field in root's

content.json as a list and not a dictionary to mantain uniformity with
"includes" "signers" field and for not having a dict with empty values
This commit is contained in:
MRoci 2017-03-23 23:24:30 +01:00
parent 16f7a6d3cb
commit 9ac5746e3c

View file

@ -631,7 +631,7 @@ class ContentManager(object):
valid_signers = [] valid_signers = []
if inner_path == "content.json": # Root content.json if inner_path == "content.json": # Root content.json
if "content.json" in self.contents and "signers" in self.contents["content.json"]: if "content.json" in self.contents and "signers" in self.contents["content.json"]:
valid_signers += self.contents["content.json"]["signers"].keys() valid_signers += self.contents["content.json"]["signers"][:]
else: else:
rules = self.getRules(inner_path, content) rules = self.getRules(inner_path, content)
if rules and "signers" in rules: if rules and "signers" in rules: