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