summaryrefslogtreecommitdiff
path: root/src/rhctl/switch_control.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-04-03 19:07:57 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-04-03 19:07:57 (GMT)
commit862c7ec9d37221b04943272f8c69f62e43cafcd2 (patch)
treef4dad570b8d1637564a91168a92302180acff5a7 /src/rhctl/switch_control.go
parent52b261e874e27172c0d0afb9a66a3e8946c0b32a (diff)
parsing switch updates works now
Diffstat (limited to 'src/rhctl/switch_control.go')
-rw-r--r--src/rhctl/switch_control.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rhctl/switch_control.go b/src/rhctl/switch_control.go
index 463c97e..2864cc9 100644
--- a/src/rhctl/switch_control.go
+++ b/src/rhctl/switch_control.go
@@ -127,9 +127,9 @@ func (ctrl *SwitchControl) reconcile(requestedServer string) (result bool) {
rhdl.Printf("SwitchCTRL: reconciling state... (requested server: '%s')", requestedServer)
// TODO: set mood dependent on overall-state
- // TODO: send out commands to switch, server to get missing infos
+ // TODO: send out commands to switch and/or server to get missing infos
- // TODO: change active server it fails or on request
+ // TODO: change active server if it fails or on request
// return true if requested server got selected
// TODO: change switch output mappings if servers change channels or fail
@@ -154,7 +154,7 @@ func (ctrl *SwitchControl) Run() {
}
ctrl.Updates.Pub(update, "switch:"+update.Type.String())
case state := <-ctrl.sw.StateChanges:
- rhdl.Printf("got switch state update: %+v", state)
+ // rhdl.Printf("got switch state update: %+v", state)
ctrl.Updates.Pub(state, "switch:state")
ctrl.state.Switch = state
ctrl.reconcile("")