mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-24 00:28:44 +05:00
V1AllocateResource return ErrResourceUnavailable
This commit is contained in:
committed by
Dan Christian Bogos
parent
856ab20969
commit
537b0241df
@@ -575,9 +575,6 @@ func (rS *ResourceService) V1AllocateResource(args utils.ArgRSv1ResourceUsage, r
|
||||
alcMsg, err := mtcRLs.allocateResource(
|
||||
&ResourceUsage{Tenant: args.CGREvent.Tenant, ID: args.UsageID, Units: args.Units}, false)
|
||||
if err != nil {
|
||||
if err == utils.ErrResourceUnavailable {
|
||||
err = utils.ErrResourceUnalocated
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user