@@ -154,9 +154,15 @@ func (a *Autopilot) Start() {
154154 fmt .Printf ("\n Plugins to run are " )
155155 fmt .Println (a .plugins_to_run )
156156 } else if a .Settings .Riotpot .Mode == "high" {
157+ fmt .Printf ("\n Contianers to run are " )
158+ fmt .Println (a .containers_to_run )
157159 a .DeployGlider ()
158160 } else if a .Settings .Riotpot .Mode == "hybrid" {
159161 a .plugins_to_run = a .Settings .Riotpot .Start
162+ fmt .Printf ("\n Plugins to run are " )
163+ fmt .Println (a .plugins_to_run )
164+ fmt .Printf ("\n Contianers to run are " )
165+ fmt .Println (a .containers_to_run )
160166 a .DeployGlider ()
161167 }
162168
@@ -197,15 +203,15 @@ func (a *Autopilot) available(name string, port int) (available bool) {
197203}
198204
199205func (a * Autopilot ) CheckModesFromConfig () {
200- mode_received := a .Settings .Riotpot .Mode
206+ mode_received := arrays . StringToArray ( a .Settings .Riotpot .Mode )
201207
202208 if len (mode_received ) > 1 {
203209 log .Fatalf ("\n Please enter only one mode in Riotpot config mode, i.e. low, high or hybrid\n " )
204210 } else if len (mode_received ) == 0 {
205211 log .Fatalf ("\n Please enter atleast one mode in Riotpot config mode, i.e. low, high or hybrid\n " )
206212 }
207213
208- if ! arrays .Contains (a .Settings .Riotpot .Allowed_modes , mode_received ) {
214+ if ! arrays .Contains (a .Settings .Riotpot .Allowed_modes , mode_received [ 0 ] ) {
209215 log .Fatalf ("\n %q mode is invalid, only choose low, high or hybrid mode only in Riotpot config\n " , mode_received [0 ])
210216 }
211217}
@@ -291,7 +297,7 @@ func (a *Autopilot) DeployGlider() {
291297 fmt .Println (a .remote_host_ip )
292298
293299 app := environ .GetPath ("glider" )
294- environ .ExecuteCmd (app , "-verbose" , "-listen" , listener , "-forward" , forwarder , "&" )
300+ environ .ExecuteBackgroundCmd (app , "-verbose" , "-listen" , listener , "-forward" , forwarder , "&" )
295301 }
296302}
297303
0 commit comments