From 07da98e438e5881239b2e2052a03ccead751e77a Mon Sep 17 00:00:00 2001 From: Aaron3S Date: Wed, 13 Sep 2023 17:25:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BD=9C=E4=B8=9A=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E6=94=AF=E6=8C=81=20raw=20(=E7=BD=91=E7=BB=9C=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E4=BD=BF=E7=94=A8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ops/const.py | 1 + apps/ops/models/job.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/ops/const.py b/apps/ops/const.py index 01889a4b2..a12caca2d 100644 --- a/apps/ops/const.py +++ b/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): diff --git a/apps/ops/models/job.py b/apps/ops/models/job.py index f27e6b309..518506ed6 100644 --- a/apps/ops/models/job.py +++ b/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, []):