From 2493647e5c49112805279001d6d9974b9b6c1e8c Mon Sep 17 00:00:00 2001 From: "Jiangjie.Bai" Date: Fri, 29 Apr 2022 16:05:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dwindows=E6=89=A7?= =?UTF-8?q?=E8=A1=8Cansible=E6=98=BE=E7=A4=BAsudo=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/models/asset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/assets/models/asset.py b/apps/assets/models/asset.py index c80c65ce6..85ac6c918 100644 --- a/apps/assets/models/asset.py +++ b/apps/assets/models/asset.py @@ -301,7 +301,7 @@ class Asset(AbsConnectivity, AbsHardwareInfo, ProtocolsMixin, NodesRelationMixin 'private_key': auth_user.private_key_file } - if not with_become: + if not with_become or self.is_windows(): return info if become_user: