fix: mtm/service note
This commit is contained in:
parent
0453499ee5
commit
6c6a6ce440
|
@ -132,12 +132,12 @@ def mgroup_run_change(mgroup: Mgroup, new_run: bool, last_timex: datetime, note:
|
|||
last_stlog, _ = StLog.objects.get_or_create(
|
||||
mgroup=mgroup,
|
||||
is_shutdown=True,
|
||||
reason = note,
|
||||
start_time=last_timex,
|
||||
defaults={
|
||||
'title': '停机',
|
||||
'end_time': None,
|
||||
'sflog': get_sflog(mgroup, last_timex)
|
||||
'sflog': get_sflog(mgroup, last_timex),
|
||||
'reason':note,
|
||||
}
|
||||
)
|
||||
elif new_run is False:
|
||||
|
|
Loading…
Reference in New Issue