Agent: fix broken pwd import on windows for ssh_handler.py

This commit is contained in:
vakaris_zilius 2022-02-18 14:22:43 +00:00 committed by vakarisz
parent b344676425
commit d874cd9d5a
1 changed files with 0 additions and 1 deletions

View File

@ -30,7 +30,6 @@ def get_ssh_info(telemetry_messenger: ITelemetryMessenger) -> Iterable[Dict]:
def _get_home_dirs() -> Iterable[Dict]:
import pwd
root_dir = _get_ssh_struct("root", "")
home_dirs = [
_get_ssh_struct(x.pw_name, x.pw_dir) for x in pwd.getpwall() if x.pw_dir.startswith("/home")