Merge pull request #11553 from jumpserver/pr@dev@feat_support_ansbile_raw

feat: 作业中心支持 raw (网络设备使用)
pull/11555/head
老广 2023-09-13 17:44:10 +08:00 committed by GitHub
commit 5b4a267ccd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -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, []):