Skip to content

Output of remote function return has debug info #61

@rjsears

Description

@rjsears

I am attempting to use remoto to access a remote function in a module. I am attempting to get it to work via an interactive interpreter:

from remoto import connection
Connection = connection.get('ssh')
conn = Connection('nas01-internal')
conn.remote_import_system = 'json'
import nas_drive_manager
remote_nas_drive_manager = conn.import_module(nas_drive_manager)
remote_nas_drive_manager.get_drive_info('total_current_files', '/mnt/enclosure0/front/column0/drive1')

This is what it returns:

DEBUG:plot01:trying to determine remote python executable with python3
INFO:plot01:Running command: which python3
INFO:plot01:Running command: /usr/bin/python3
83

What I need is to just get the 83 - not sure if I am using it in the wrong way. The python module has no logging enabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions