summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-04-19 15:56:57 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-04-19 15:56:57 (GMT)
commitafc65d6cb58e1aa7485c9fe5c95fd9bd6833c259 (patch)
tree25969cc914eb6d63ef975c5d99c9cf581451c68c
parentca378f5cff9d22d68fa677fcbcff59a2322d8353 (diff)
don't exit from awakening without changing mood
-rw-r--r--src/rhctl/switch_control.go3
1 files changed, 2 insertions, 1 deletions
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
}