From afb49f40408336c6759ed571857e1b5404ac0c74 Mon Sep 17 00:00:00 2001 From: jiangweidong Date: Fri, 12 May 2023 15:37:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20oracle=20Ping=20=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ops/ansible/inventory.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/ops/ansible/inventory.py b/apps/ops/ansible/inventory.py index 6ecc49698..80922859b 100644 --- a/apps/ops/ansible/inventory.py +++ b/apps/ops/ansible/inventory.py @@ -5,8 +5,6 @@ from collections import defaultdict from django.utils.translation import gettext as _ -from accounts.const import AutomationTypes - __all__ = ['JMSInventory'] @@ -79,6 +77,7 @@ class JMSInventory: return var def make_account_vars(self, host, asset, account, automation, protocol, platform, gateway): + from accounts.const import AutomationTypes if not account: host['error'] = _("No account available") return host