mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-17 14:19:54 +05:00
more regexp fixes
This commit is contained in:
@@ -767,9 +767,14 @@ func (csvr *CSVReader) LoadActionTriggers() (err error) {
|
||||
if err != nil {
|
||||
return fmt.Errorf("Could not parse action trigger recurrent flag (%v): %v", record[5], err)
|
||||
}
|
||||
|
||||
minSleep, err := time.ParseDuration(record[6])
|
||||
if err != nil {
|
||||
return fmt.Errorf("Could not parse action trigger MinSleep (%v): %v", record[6], err)
|
||||
if record[6] == "" {
|
||||
minSleep = 0
|
||||
} else {
|
||||
return fmt.Errorf("Could not parse action trigger MinSleep (%v): %v", record[6], err)
|
||||
}
|
||||
}
|
||||
balanceWeight, err := strconv.ParseFloat(record[8], 64)
|
||||
if record[8] != "" && err != nil {
|
||||
|
||||
Reference in New Issue
Block a user