summaryrefslogtreecommitdiff
path: root/src/rhctl/switch_control.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-09-23 23:50:02 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-09-23 23:50:02 (GMT)
commit22b7dea37af284d282ed6ade6068cad4f10f3b81 (patch)
tree15834a715d3836b97d375acc4e6ef13d62d3ea2a /src/rhctl/switch_control.go
parent77b9b4340d4d49ccc11753900854b3577c7afed2 (diff)
improve log output for switch over requests while settling
Diffstat (limited to 'src/rhctl/switch_control.go')
-rw-r--r--src/rhctl/switch_control.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rhctl/switch_control.go b/src/rhctl/switch_control.go
index 9fd55ea..985f8b3 100644
--- a/src/rhctl/switch_control.go
+++ b/src/rhctl/switch_control.go
@@ -227,7 +227,10 @@ func (ctrl *SwitchControl) selectNextValidServer() {
func (ctrl *SwitchControl) reconcile(requestedServer string) (result bool) {
if !ctrl.state.Settled {
- return
+ if requestedServer != "" {
+ rhl.Printf("SwitchCTRL: ignoreing preferred server requests while settling")
+ return
+ }
}
if len(ctrl.servers) < 1 {
ctrl.state.Mood = MoodHappy