mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-19 18:34:28 +00:00
[Update] 修改运行命令名称 (#2140)
This commit is contained in:
@@ -48,6 +48,9 @@ class CommandExecution(models.Model):
|
||||
return False
|
||||
return True
|
||||
|
||||
def get_hosts_names(self):
|
||||
return ','.join(self.hosts.all().values_list('hostname', flat=True))
|
||||
|
||||
def run(self):
|
||||
print('-'*10 + ' ' + ugettext('Task start') + ' ' + '-'*10)
|
||||
self.date_start = timezone.now()
|
||||
|
Reference in New Issue
Block a user