Browse Source

feat: 作业中心支持 raw (网络设备使用)

pull/11553/head
Aaron3S 1 year ago
parent
commit
07da98e438
  1. 1
      apps/ops/const.py
  2. 2
      apps/ops/models/job.py

1
apps/ops/const.py

@ -52,6 +52,7 @@ class Modules(models.TextChoices):
mysql = 'mysql', _('MySQL')
postgresql = 'postgresql', _('PostgreSQL')
sqlserver = 'sqlserver', _('SQLServer')
raw = 'raw', _('Raw')
class JobStatus(models.TextChoices):

2
apps/ops/models/job.py

@ -64,7 +64,7 @@ class JMSPermedInventory(JMSInventory):
'mysql': ['mysql'],
'postgresql': ['postgresql'],
'sqlserver': ['sqlserver'],
'ssh': ['shell', 'python', 'win_shell'],
'ssh': ['shell', 'python', 'win_shell', 'raw'],
}
if self.module not in protocol_supported_modules_mapping.get(protocol.name, []):

Loading…
Cancel
Save