[winrm] ruff

Signed-off-by: Xiaoli Chan <2209553467@qq.com>
main
Xiaoli Chan 2023-11-06 01:53:04 +08:00
parent 6e562cdfa6
commit e1a4da1cea
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ class winrm(connection):
self.host if not self.is_ipv6 else f"[{self.host}]",
endpoints[protocol]["port"]
)
endpoints[protocol]["ssl"] = not (protocol == "http")
endpoints[protocol]["ssl"] = (protocol != "http")
for protocol in endpoints:
self.port = endpoints[protocol]["port"]