Skip to content

Commit b4cf6b9

Browse files
authored
Unsupported pxssh on windows (#31)
1 parent 4ff3af4 commit b4cf6b9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ark_sdk_python/common/connections/ssh/ark_pty_ssh_connection.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from typing import Any, Optional
66

77
from overrides import overrides
8-
from pexpect import pxssh
98

109
from ark_sdk_python.common.connections.ark_connection import ArkConnection
1110
from ark_sdk_python.common.connections.ssh.ark_ssh_connection import SSH_PORT
@@ -20,7 +19,7 @@ def __init__(self):
2019
super().__init__()
2120
self.__is_connected: bool = False
2221
self.__is_suspended: bool = False
23-
self.__ssh_client: Optional[pxssh.pxssh] = None
22+
self.__ssh_client: Optional[Any] = None
2423

2524
@overrides
2625
def connect(self, connection_details: ArkConnectionDetails) -> None:
@@ -34,6 +33,8 @@ def connect(self, connection_details: ArkConnectionDetails) -> None:
3433
Raises:
3534
ArkException: _description_
3635
"""
36+
from pexpect import pxssh
37+
3738
if self.__is_connected:
3839
return
3940
try:

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "ark-sdk-python"
3-
version = "2.0.2"
3+
version = "2.0.3"
44
description='Official Ark SDK / CLI for CyberArk Identity Security Platform'
55
authors = ["CyberArk <[email protected]>", "Ofir Iluz <[email protected]"]
66
readme = "README.md"

0 commit comments

Comments
 (0)