From afc65d6cb58e1aa7485c9fe5c95fd9bd6833c259 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 19 Apr 2016 17:56:57 +0200 Subject: don't exit from awakening without changing mood diff --git a/src/rhctl/switch_control.go b/src/rhctl/switch_control.go index 5c7bd7c..a044124 100644 --- a/src/rhctl/switch_control.go +++ b/src/rhctl/switch_control.go @@ -208,7 +208,8 @@ func (ctrl *SwitchControl) reconcile(requestedServer string, snooze bool) (resul ctrl.state.ActiveServer = swsrv if s.Channel != swch { - rhl.Printf("SwitchCTRL: switch and server '%s' channel mismatch: switch = '%s', server = '%s'!", swsrv, swch, s.Channel) + ctrl.state.Mood = MoodNervous + rhl.Printf("SwitchCTRL: switch and server channel mismatch: '%s' != '%s' -> now in mood: %s", swch, s.Channel, ctrl.state.Mood) ctrl.selectServer(ctrl.state.ActiveServer) return } -- cgit v0.10.2