diff options
author | Christian Pointner <equinox@spreadspace.org> | 2016-03-31 23:53:47 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2016-03-31 23:53:47 (GMT) |
commit | 50efc53ea340a311961c2f44646da031bee480c3 (patch) | |
tree | 2cd53d2a1188607b470919bc329a4636832eb1df /src/rhctl/switch_control.go | |
parent | 1e5596d626ebba0c150bea5804378cd35f95387e (diff) |
fixed command type mapping
Diffstat (limited to 'src/rhctl/switch_control.go')
-rw-r--r-- | src/rhctl/switch_control.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rhctl/switch_control.go b/src/rhctl/switch_control.go index ca27b86..f52e9a2 100644 --- a/src/rhctl/switch_control.go +++ b/src/rhctl/switch_control.go @@ -63,6 +63,8 @@ type SwitchControl struct { func (ctrl *SwitchControl) handleCommand(cmd *Command) { switch cmd.Type { case CmdStatus: + case CmdServer: + case CmdSwitch: if len(cmd.Args) == 0 { rhl.Printf("SwitchCTRL: ignoring empty raw switch command") return @@ -74,8 +76,6 @@ func (ctrl *SwitchControl) handleCommand(cmd *Command) { } c.Response = cmd.Response ctrl.sw.Commands <- c - case CmdServer: - case CmdSwitch: } } |