Merge pull request #3403 from jumpserver/dev_ops

[Bugfix] 修复执行任务,没有保存 history 的问题
pull/3405/head
BaiJiangJie 5 years ago committed by GitHub
commit b595ac9bc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -242,6 +242,7 @@ class AdHoc(models.Model):
except AttributeError: except AttributeError:
hid = str(uuid.uuid4()) hid = str(uuid.uuid4())
history = AdHocRunHistory(id=hid, adhoc=self, task=self.task) history = AdHocRunHistory(id=hid, adhoc=self, task=self.task)
history.save()
time_start = time.time() time_start = time.time()
date_start = timezone.now() date_start = timezone.now()
is_success = False is_success = False

Loading…
Cancel
Save