Conditions | 3 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | #!/usr/bin/env python3 |
||
9 | def run_ssh_command_by_client(client, command): |
||
10 | """ |
||
11 | Running origin ssh command |
||
12 | :param client: String |
||
13 | :param command: String |
||
14 | :return: |
||
15 | """ |
||
16 | if client == mode.Client.ORIGIN: |
||
17 | return run_ssh_command(command, remote_client.ssh_client_origin) |
||
18 | elif client == mode.Client.TARGET: |
||
19 | return run_ssh_command(command, remote_client.ssh_client_target) |
||
20 | |||
39 | return stdout |
||