mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-07 11:59:18 +00:00
fix: 修复windows执行ansible显示sudo失败的问题
This commit is contained in:
parent
00ed7bb025
commit
2493647e5c
@ -301,7 +301,7 @@ class Asset(AbsConnectivity, AbsHardwareInfo, ProtocolsMixin, NodesRelationMixin
|
|||||||
'private_key': auth_user.private_key_file
|
'private_key': auth_user.private_key_file
|
||||||
}
|
}
|
||||||
|
|
||||||
if not with_become:
|
if not with_become or self.is_windows():
|
||||||
return info
|
return info
|
||||||
|
|
||||||
if become_user:
|
if become_user:
|
||||||
|
Loading…
Reference in New Issue
Block a user