mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Set contexts/subsystems to *any if empty + tests
This commit is contained in:
committed by
Dan Christian Bogos
parent
04f45b15f2
commit
4305c505a8
@@ -75,7 +75,7 @@ type DispatcherWithAPIOpts struct {
|
||||
|
||||
// SetDispatcherProfile add/update a new Dispatcher Profile
|
||||
func (apierSv1 *APIerSv1) SetDispatcherProfile(args *DispatcherWithAPIOpts, reply *string) error {
|
||||
if missing := utils.MissingStructFields(args.DispatcherProfile, []string{utils.ID, utils.Subsystems}); len(missing) != 0 {
|
||||
if missing := utils.MissingStructFields(args.DispatcherProfile, []string{utils.ID}); len(missing) != 0 {
|
||||
return utils.NewErrMandatoryIeMissing(missing...)
|
||||
}
|
||||
if args.Tenant == utils.EmptyString {
|
||||
|
||||
Reference in New Issue
Block a user