Skip to content
Snippets Groups Projects
Commit 1d962ffe authored by hahn's avatar hahn
Browse files

task #4637 - fix_handling of extravars

parent 9cf86448
No related branches found
No related tags found
1 merge request!12AWX - handling leerer AWX felder
......@@ -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]) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment