Commit 9c8ff7ec authored by David Wilson's avatar David Wilson

Remove proxy_test (duplicates sudo_test)

parent f22d05a7
import logging
import os
import mitogen.ssh
import mitogen.sudo
import mitogen.utils
@mitogen.utils.run_with_router
def main(router):
mitogen.utils.log_to_file(io=False)
child1 = router.ssh(name='u', hostname='u')
child2 = router.sudo(
username='sudo_pw_test',
password='x',
name='sudo_pw_test',
via=child1,
)
child2.call(os.system, 'id')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment