From 9207ee73ea4ba88bc23d0d9035679611ff457ae1 Mon Sep 17 00:00:00 2001 From: jiangweidong Date: Wed, 22 Feb 2023 20:16:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3Oracle=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E8=B4=A6=E5=8F=B7=E4=BB=BB=E5=8A=A1=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/accounts/automations/verify_account/manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/accounts/automations/verify_account/manager.py b/apps/accounts/automations/verify_account/manager.py index 3d07a95da..bf43eff46 100644 --- a/apps/accounts/automations/verify_account/manager.py +++ b/apps/accounts/automations/verify_account/manager.py @@ -57,9 +57,9 @@ class VerifyAccountManager(AccountBasePlaybookManager): 'secret': secret, 'private_key_path': private_key_path } + if account.platform.type == 'oracle': + h['account']['mode'] = 'sysdba' if account.privileged else None inventory_hosts.append(h) - # print("Host: ") - # print(self.json_dumps(inventory_hosts)) return inventory_hosts @classmethod