Skip to content

Commit 51a78fc

Browse files
fix: RemoteOperations should not check the local platform. (#25)
This class oriented to target system with Linux.
1 parent 5a6fe1d commit 51a78fc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/remote_ops.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import getpass
44
import os
55
import posixpath
6-
import sys
76
import subprocess
87
import tempfile
98
import io
@@ -47,6 +46,9 @@ def cmdline(self):
4746

4847

4948
class RemoteOperations(OsOperations):
49+
#
50+
# Target system is Linux only.
51+
#
5052
sm_dummy_conn_params = ConnectionParams()
5153

5254
conn_params: ConnectionParams
@@ -59,9 +61,6 @@ class RemoteOperations(OsOperations):
5961
ssh_dest: str
6062

6163
def __init__(self, conn_params: ConnectionParams):
62-
if sys.platform != "linux":
63-
raise EnvironmentError("Remote operations are supported only on Linux!")
64-
6564
if conn_params is None:
6665
raise ValueError("Argument 'conn_params' is None.")
6766

0 commit comments

Comments
 (0)