mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-05 11:06:34 +00:00
feat: 作业中心支持 raw (网络设备使用)
This commit is contained in:
parent
7c973616cd
commit
07da98e438
@ -52,6 +52,7 @@ class Modules(models.TextChoices):
|
|||||||
mysql = 'mysql', _('MySQL')
|
mysql = 'mysql', _('MySQL')
|
||||||
postgresql = 'postgresql', _('PostgreSQL')
|
postgresql = 'postgresql', _('PostgreSQL')
|
||||||
sqlserver = 'sqlserver', _('SQLServer')
|
sqlserver = 'sqlserver', _('SQLServer')
|
||||||
|
raw = 'raw', _('Raw')
|
||||||
|
|
||||||
|
|
||||||
class JobStatus(models.TextChoices):
|
class JobStatus(models.TextChoices):
|
||||||
|
@ -64,7 +64,7 @@ class JMSPermedInventory(JMSInventory):
|
|||||||
'mysql': ['mysql'],
|
'mysql': ['mysql'],
|
||||||
'postgresql': ['postgresql'],
|
'postgresql': ['postgresql'],
|
||||||
'sqlserver': ['sqlserver'],
|
'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, []):
|
if self.module not in protocol_supported_modules_mapping.get(protocol.name, []):
|
||||||
|
Loading…
Reference in New Issue
Block a user