From e45ca11f91b355b7d39dc254309b0655c33d0660 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Mon, 7 Sep 2020 11:14:18 +0200 Subject: [PATCH] Fix a bug by settings default value to git branch variable --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index f5ab292..8aca847 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -65,7 +65,7 @@ with_items: '{{ drupal_settings|default([]) }}' loop_control: loop_var: drupal - when: limit_site is not defined and (siteproject is not defined or siteproject == 'no' or drupal.siteproject is not defined or (siteproject == drupal.siteproject and drupal.src.git.branch == 'master')) + when: limit_site is not defined and (siteproject is not defined or siteproject == 'no' or drupal.siteproject is not defined or (siteproject == drupal.siteproject and drupal.src.git.branch|default('master') == 'master')) tags: - deploy -- GitLab