diff --git a/public_html/deployment/plugins/rollout/awx/rollout_awx.php b/public_html/deployment/plugins/rollout/awx/rollout_awx.php index 6a2c17904f4239ee8f5f0758381a42a0cac39f62..800a2531d6ede3594efbc7e9feba9ff89b234437 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]) {