mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Return error when ratingprofile_rem command don't get parameters fixes #1514
This commit is contained in:
committed by
Dan Christian Bogos
parent
5bd32644ef
commit
28c228d421
@@ -19,7 +19,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
package console
|
||||
|
||||
import (
|
||||
"github.com/cgrates/cgrates/apier/v1"
|
||||
"reflect"
|
||||
|
||||
v1 "github.com/cgrates/cgrates/apier/v1"
|
||||
"github.com/cgrates/cgrates/utils"
|
||||
)
|
||||
|
||||
@@ -57,6 +59,9 @@ func (self *CmdRemRatingProfile) RpcParams(reset bool) interface{} {
|
||||
}
|
||||
|
||||
func (self *CmdRemRatingProfile) PostprocessRpcParams() error {
|
||||
if reflect.DeepEqual(self.rpcParams, &v1.AttrRemoveRatingProfile{Direction: utils.OUT}) {
|
||||
return utils.ErrMandatoryIeMissing
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
@@ -567,6 +567,7 @@ const (
|
||||
MetaRouteID = "*route_id"
|
||||
MetaApiKey = "*api_key"
|
||||
UsageID = "UsageID"
|
||||
Status = "status"
|
||||
)
|
||||
|
||||
// Migrator Action
|
||||
|
||||
Reference in New Issue
Block a user