Fix atribute typos.

This commit is contained in:
Gavin Henry
2018-10-22 22:38:35 +01:00
committed by Dan Christian Bogos
parent 3e8e930bd8
commit 727f428082
4 changed files with 16 additions and 16 deletions

View File

@@ -24,8 +24,8 @@ import (
)
func init() {
c := &CmdGetAtributes{
name: "atributes",
c := &CmdGetAttributes{
name: "attributes",
rpcMethod: "ApierV1.GetAttributeProfile",
rpcParams: &utils.TenantID{},
}
@@ -34,33 +34,33 @@ func init() {
}
// Commander implementation
type CmdGetAtributes struct {
type CmdGetAttributes struct {
name string
rpcMethod string
rpcParams *utils.TenantID
*CommandExecuter
}
func (self *CmdGetAtributes) Name() string {
func (self *CmdGetAttributes) Name() string {
return self.name
}
func (self *CmdGetAtributes) RpcMethod() string {
func (self *CmdGetAttributes) RpcMethod() string {
return self.rpcMethod
}
func (self *CmdGetAtributes) RpcParams(reset bool) interface{} {
func (self *CmdGetAttributes) RpcParams(reset bool) interface{} {
if reset || self.rpcParams == nil {
self.rpcParams = &utils.TenantID{}
}
return self.rpcParams
}
func (self *CmdGetAtributes) PostprocessRpcParams() error {
func (self *CmdGetAttributes) PostprocessRpcParams() error {
return nil
}
func (self *CmdGetAtributes) RpcResult() interface{} {
func (self *CmdGetAttributes) RpcResult() interface{} {
atr := engine.AttributeProfile{}
return &atr
}

View File

@@ -21,8 +21,8 @@ package console
import "github.com/cgrates/cgrates/utils"
func init() {
c := &CmdRemoveAtributes{
name: "atributes_remove",
c := &CmdRemoveAttributes{
name: "attributes_remove",
rpcMethod: "ApierV1.RemoveAttributeProfile",
rpcParams: &utils.TenantID{},
}
@@ -30,33 +30,33 @@ func init() {
c.CommandExecuter = &CommandExecuter{c}
}
type CmdRemoveAtributes struct {
type CmdRemoveAttributes struct {
name string
rpcMethod string
rpcParams *utils.TenantID
*CommandExecuter
}
func (self *CmdRemoveAtributes) Name() string {
func (self *CmdRemoveAttributes) Name() string {
return self.name
}
func (self *CmdRemoveAtributes) RpcMethod() string {
func (self *CmdRemoveAttributes) RpcMethod() string {
return self.rpcMethod
}
func (self *CmdRemoveAtributes) RpcParams(reset bool) interface{} {
func (self *CmdRemoveAttributes) RpcParams(reset bool) interface{} {
if reset || self.rpcParams == nil {
self.rpcParams = &utils.TenantID{}
}
return self.rpcParams
}
func (self *CmdRemoveAtributes) PostprocessRpcParams() error {
func (self *CmdRemoveAttributes) PostprocessRpcParams() error {
return nil
}
func (self *CmdRemoveAtributes) RpcResult() interface{} {
func (self *CmdRemoveAttributes) RpcResult() interface{} {
var s string
return &s
}