From c8ae8da63c0a7f787c61832030494c4193ce0bac Mon Sep 17 00:00:00 2001
From: hahn <axel.hahn@iml.unibe.ch>
Date: Mon, 2 Aug 2021 15:42:43 +0200
Subject: [PATCH] set phases -> $sPhase -> deploymethod

---
 shellscripts/convert_projects_2_rollout-plugins.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/shellscripts/convert_projects_2_rollout-plugins.php b/shellscripts/convert_projects_2_rollout-plugins.php
index 48535893..9476346d 100644
--- a/shellscripts/convert_projects_2_rollout-plugins.php
+++ b/shellscripts/convert_projects_2_rollout-plugins.php
@@ -79,6 +79,8 @@ foreach ($oPrj1->getProjects() as $sPrj) {
                     $aCfg['deploy']['enabled_rollout_plugin']='ssh';
                     echo "  - set hosts for ssh plugin phases -> $sPhase -> plugins -> rollout -> ssh -> hosts = ".$aCfg['phases'][$sPhase]['hosts']."\n";
                     $aCfg['phases'][$sPhase]['plugins']['rollout']['ssh']['hosts']=$aCfg['phases'][$sPhase]['hosts'];
+                    echo "  - set phases -> $sPhase -> deploymethod => rolloutplugin \n";
+                    $aCfg['phases'][$sPhase]['deploymethod']='rolloutplugin';
                 }
             }
             if(!$bSave){
-- 
GitLab