Fix work with empty constraints

This commit is contained in:
Mikhail Gordeev 2020-05-07 18:23:07 +03:00
parent 4db286412b
commit 25528c3f6e

View File

@ -443,6 +443,9 @@ Dir::Etc::preferencesparts "/var/empty";
default_state = state_re
for item, constraints in data.items():
if constraints is None:
constraints = {}
if (
image in constraints.get('exclude_images', [])
or branch in constraints.get('exclude_branches', [])