Check groups entry in gerrit/projects
Following Icbef648e9948e0fa636dd0d15039b6fc229541ca, check that groups are a list if defined. Change-Id: I3a647c6b2debc7bb0a3a06b3f3407c4ea7e3f3e5
This commit is contained in:
parent
106cb9f290
commit
945a586f65
@ -253,6 +253,11 @@ def main():
|
||||
found_errors += 1
|
||||
print("ERROR: Non-StoryBoard project %s has default groups entry, "
|
||||
"remove it" % name)
|
||||
# Check that groups is a list
|
||||
groups = p.get('groups')
|
||||
if (groups and not isinstance(groups, list)):
|
||||
found_errors += 1
|
||||
print("Error: groups entry for project %s is not a list." % name)
|
||||
|
||||
if found_errors:
|
||||
print("Found %d error(s) in %s" % (found_errors, args.infile))
|
||||
|
Loading…
Reference in New Issue
Block a user