mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-18 00:08:31 +00:00
fix: oracle Ping 失败
This commit is contained in:
committed by
Jiangjie.Bai
parent
4e20cf6036
commit
afb49f4040
@@ -5,8 +5,6 @@ from collections import defaultdict
|
|||||||
|
|
||||||
from django.utils.translation import gettext as _
|
from django.utils.translation import gettext as _
|
||||||
|
|
||||||
from accounts.const import AutomationTypes
|
|
||||||
|
|
||||||
__all__ = ['JMSInventory']
|
__all__ = ['JMSInventory']
|
||||||
|
|
||||||
|
|
||||||
@@ -79,6 +77,7 @@ class JMSInventory:
|
|||||||
return var
|
return var
|
||||||
|
|
||||||
def make_account_vars(self, host, asset, account, automation, protocol, platform, gateway):
|
def make_account_vars(self, host, asset, account, automation, protocol, platform, gateway):
|
||||||
|
from accounts.const import AutomationTypes
|
||||||
if not account:
|
if not account:
|
||||||
host['error'] = _("No account available")
|
host['error'] = _("No account available")
|
||||||
return host
|
return host
|
||||||
|
Reference in New Issue
Block a user