From 9cf86448b606da80d5f98047452c95df2ae385cf Mon Sep 17 00:00:00 2001
From: hahn <axel.hahn@iml.unibe.ch>
Date: Tue, 3 Aug 2021 17:22:42 +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 f6e39e87..6a2c1790 100644
--- a/public_html/deployment/plugins/rollout/awx/rollout_awx.php
+++ b/public_html/deployment/plugins/rollout/awx/rollout_awx.php
@@ -153,7 +153,7 @@ class rollout_awx extends rollout_base {
             if (!$aTmp || !count($aTmp) ){
                 $aReturn[]='echo "ERROR: Value in extravars has wrong Syntax - this is no JSON: '.$aConfig['extravars'].'"';                
             }
-            $aConfig['extravars']=json_decode($aTmp, 1);
+            $aConfig['extravars']=json_encode($aTmp);
         }
         
         if(!(int)$aConfig['inventory']){
-- 
GitLab