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:
parent
16f7a6d3cb
commit
9ac5746e3c
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue