Skip to content
Snippets Groups Projects

AWX - handling leerer AWX felder

Merged Hahn Axel (hahn) requested to merge rollout-plugins into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -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]) {
Loading