Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output of remote function return has debug info #61

Open
rjsears opened this issue Mar 9, 2021 · 0 comments
Open

Output of remote function return has debug info #61

rjsears opened this issue Mar 9, 2021 · 0 comments

Comments

@rjsears
Copy link

rjsears commented Mar 9, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant