From 25528c3f6ec9fc74d771cbe5e7762eb12c658dca Mon Sep 17 00:00:00 2001 From: Mikhail Gordeev Date: Thu, 7 May 2020 18:23:07 +0300 Subject: [PATCH] Fix work with empty constraints --- cloud_build/cloud_build.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cloud_build/cloud_build.py b/cloud_build/cloud_build.py index 6c0aa10..2379d9a 100755 --- a/cloud_build/cloud_build.py +++ b/cloud_build/cloud_build.py @@ -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', [])