fix: crontab setstatus force, forget this: crontab.force = force
This commit is contained in:
parent
ed2dfe0809
commit
b7f0209cc3
|
@ -108,6 +108,7 @@ func (cron *Crontab) SetStatus(statusType StatusType, statusValue ...interface{}
|
||||||
default:
|
default:
|
||||||
panic(errors.New("statusValue type is error, the type is" + reflect.TypeOf(ivalue).String()))
|
panic(errors.New("statusValue type is error, the type is" + reflect.TypeOf(ivalue).String()))
|
||||||
}
|
}
|
||||||
|
cron.force = force
|
||||||
case SExecuteCrontab:
|
case SExecuteCrontab:
|
||||||
crontab := statusValue[0].(string)
|
crontab := statusValue[0].(string)
|
||||||
cron.crontab = strings.TrimSpace(crontab)
|
cron.crontab = strings.TrimSpace(crontab)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user