fix: 修复快捷命令找不到mssql module 的问题

pull/12111/head
Aaron3S 1 year ago committed by Bryan
parent 9996b200f9
commit 7c51d90a3d

@ -77,6 +77,7 @@ class JMSPermedInventory(JMSInventory):
host['login_user'] = account.username host['login_user'] = account.username
host['login_password'] = account.secret host['login_password'] = account.secret
host['login_db'] = asset.spec_info.get('db_name', '') host['login_db'] = asset.spec_info.get('db_name', '')
host['ansible_python_interpreter'] = '/opt/py3/bin/python'
return host return host
return super().make_account_vars(host, asset, account, automation, protocol, platform, gateway) return super().make_account_vars(host, asset, account, automation, protocol, platform, gateway)
@ -127,7 +128,8 @@ class Job(JMSOrgBaseModel, PeriodTaskModelMixin):
instant = models.BooleanField(default=False) instant = models.BooleanField(default=False)
args = models.CharField(max_length=8192, default='', verbose_name=_('Args'), null=True, blank=True) args = models.CharField(max_length=8192, default='', verbose_name=_('Args'), null=True, blank=True)
module = models.CharField(max_length=128, choices=JobModules.choices, default=JobModules.shell, verbose_name=_('Module'), module = models.CharField(max_length=128, choices=JobModules.choices, default=JobModules.shell,
verbose_name=_('Module'),
null=True) null=True)
chdir = models.CharField(default="", max_length=1024, verbose_name=_('Chdir'), null=True, blank=True) chdir = models.CharField(default="", max_length=1024, verbose_name=_('Chdir'), null=True, blank=True)
timeout = models.IntegerField(default=-1, verbose_name=_('Timeout (Seconds)')) timeout = models.IntegerField(default=-1, verbose_name=_('Timeout (Seconds)'))

Loading…
Cancel
Save