예제 #1
0
def command_run(ssh_client, command, message):
    exit_status, output = ssh_client.run_command(command)
    if exit_status != 0:
        raise CUCommandException(message)
예제 #2
0
def command_run(ssh_client, command, message):
    result = ssh_client.run_command(command)
    if result.failed:
        raise CUCommandException(message)