fix: 修复windows执行ansible显示sudo失败的问题

pull/8197/head v2.21.3
Jiangjie.Bai 2022-04-29 16:05:23 +08:00 committed by 老广
parent e56fc93a6e
commit 9bd9d443b4
1 changed files with 1 additions and 1 deletions

View File

@ -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: