From 1d962ffe61debd26dd091191a65438d25cdc6fde Mon Sep 17 00:00:00 2001
From: hahn <axel.hahn@iml.unibe.ch>
Date: Tue, 3 Aug 2021 17:24:01 +0200
Subject: [PATCH] task #4637 - fix_handling of extravars

---
 public_html/deployment/plugins/rollout/awx/rollout_awx.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/public_html/deployment/plugins/rollout/awx/rollout_awx.php b/public_html/deployment/plugins/rollout/awx/rollout_awx.php
index 6a2c1790..800a2531 100644
--- a/public_html/deployment/plugins/rollout/awx/rollout_awx.php
+++ b/public_html/deployment/plugins/rollout/awx/rollout_awx.php
@@ -147,7 +147,6 @@ class rollout_awx extends rollout_base {
         $aConfig=$this->getConfig($sPhase);
         
         // ----- Checks:
-        
         if($aConfig['extravars']){
             $aTmp=json_decode($aConfig['extravars']);
             if (!$aTmp || !count($aTmp) ){
@@ -160,6 +159,7 @@ class rollout_awx extends rollout_base {
             $aReturn[]='echo "ERROR: no inventory was given."; exit 1';
         }
         
+        // ----- Send variables having values only
         $aBodyvars=array();
         foreach(['inventory'=>'inventory', 'limit'=>'limit', 'job_tags'=>'tags', 'extra_vars'=>'extravars'] as $sParam=>$sVarkey){
             if ($aConfig[$sVarkey]) {
-- 
GitLab