Skip to content

Commit

Permalink
fix formattig
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-usielski committed Oct 16, 2024
1 parent 4f8174c commit 8778907
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 66 deletions.
66 changes: 33 additions & 33 deletions moler/device/unixremote.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,41 +25,41 @@ class UnixRemote(ProxyPc):
Example of device in yaml configuration file:
- with PROXY_PC:
UNIX_1:
DEVICE_CLASS: moler.device.unixremote.UnixRemote
CONNECTION_HOPS:
PROXY_PC:
UNIX_REMOTE:
execute_command: ssh # default value
command_params:
expected_prompt: unix_remote_prompt
host: host_ip
login: login
password: password
UNIX_REMOTE:
PROXY_PC:
execute_command: exit # default value
command_params:
expected_prompt: proxy_pc_prompt
UNIX_LOCAL:
PROXY_PC:
execute_command: ssh # default value
command_params:
expected_prompt: proxy_pc_prompt
host: host_ip
login: login
password: password
DEVICE_CLASS: moler.device.unixremote.UnixRemote
CONNECTION_HOPS:
PROXY_PC:
UNIX_REMOTE:
execute_command: ssh # default value
command_params:
expected_prompt: unix_remote_prompt
host: host_ip
login: login
password: password
UNIX_REMOTE:
PROXY_PC:
execute_command: exit # default value
command_params:
expected_prompt: proxy_pc_prompt
UNIX_LOCAL:
PROXY_PC:
execute_command: ssh # default value
command_params:
expected_prompt: proxy_pc_prompt
host: host_ip
login: login
password: password
-without PROXY_PC:
UNIX_1:
DEVICE_CLASS: moler.device.unixremote.UnixRemote
CONNECTION_HOPS:
UNIX_LOCAL:
UNIX_REMOTE:
execute_command: ssh # default value
command_params:
expected_prompt: unix_remote_prompt
host: host_ip
login: login
password: password
DEVICE_CLASS: moler.device.unixremote.UnixRemote
CONNECTION_HOPS:
UNIX_LOCAL:
UNIX_REMOTE:
execute_command: ssh # default value
command_params:
expected_prompt: unix_remote_prompt
host: host_ip
login: login
password: password
"""
Expand Down
67 changes: 34 additions & 33 deletions moler/device/unixremote3.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,41 +29,41 @@ class UnixRemote3(ProxyPc):
Example of device in yaml configuration file:
- with PROXY_PC:
UNIX_1:
DEVICE_CLASS: moler.device.UnixRemote3.UnixRemote3
CONNECTION_HOPS:
PROXY_PC:
UNIX_REMOTE:
execute_command: ssh # default value
command_params:
expected_prompt: unix_remote_prompt
host: host_ip
login: login
password: password
UNIX_REMOTE:
PROXY_PC:
execute_command: exit # default value
command_params:
expected_prompt: proxy_pc_prompt
UNIX_LOCAL:
PROXY_PC:
execute_command: ssh # default value
command_params:
expected_prompt: proxy_pc_prompt
host: host_ip
login: login
password: password
DEVICE_CLASS: moler.device.UnixRemote3.UnixRemote3
CONNECTION_HOPS:
PROXY_PC:
UNIX_REMOTE:
execute_command: ssh # default value
command_params:
expected_prompt: unix_remote_prompt
host: host_ip
login: login
password: password
UNIX_REMOTE:
PROXY_PC:
execute_command: exit # default value
command_params:
expected_prompt: proxy_pc_prompt
UNIX_LOCAL:
PROXY_PC:
execute_command: ssh # default value
command_params:
expected_prompt: proxy_pc_prompt
host: host_ip
login: login
password: password
-without PROXY_PC:
UNIX_1:
DEVICE_CLASS: moler.device.UnixRemote3.UnixRemote3
CONNECTION_HOPS:
UNIX_LOCAL:
UNIX_REMOTE:
execute_command: ssh # default value
command_params:
expected_prompt: unix_remote_prompt
host: host_ip
login: login
password: password
DEVICE_CLASS: moler.device.UnixRemote3.UnixRemote3
CONNECTION_HOPS:
UNIX_LOCAL:
UNIX_REMOTE:
execute_command: ssh # default value
command_params:
expected_prompt: unix_remote_prompt
host: host_ip
login: login
password: password
"""
Expand Down Expand Up @@ -109,6 +109,7 @@ def __init__(
initial_state=initial_state,
lazy_cmds_events=lazy_cmds_events,
)
self._log(msg="Experimental device. Maybe deleted at any moment. Please don't use it in your scripts.")

def _prepare_sm_data(self, sm_params):
self._prepare_dicts_for_sm(sm_params=sm_params)
Expand Down

0 comments on commit 8778907

Please sign in to comment.