fix for scheduler_queue console command

This commit is contained in:
Radu Ioan Fericean
2015-12-07 12:48:45 +02:00
parent 09dd9299e3
commit a1d2f71667

View File

@@ -24,7 +24,7 @@ func init() {
c := &CmdGetScheduledActions{
name: "scheduler_queue",
rpcMethod: "ApierV1.GetScheduledActions",
rpcParams: &v1.AttrsGetScheduledActions{},
rpcParams: []*v1.AttrsGetScheduledActions{},
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}
@@ -34,7 +34,7 @@ func init() {
type CmdGetScheduledActions struct {
name string
rpcMethod string
rpcParams *v1.AttrsGetScheduledActions
rpcParams []*v1.AttrsGetScheduledActions
*CommandExecuter
}
@@ -48,7 +48,7 @@ func (self *CmdGetScheduledActions) RpcMethod() string {
func (self *CmdGetScheduledActions) RpcParams(reset bool) interface{} {
if reset || self.rpcParams == nil {
self.rpcParams = &v1.AttrsGetScheduledActions{}
self.rpcParams = make([]*v1.AttrsGetScheduledActions, 0)
}
return self.rpcParams
}