Comment 4 for bug 1286613

Robie Basak (racb) wrote :

Python workaround:

import subprocess

def remote_run(unit, command):
    subprocess.check_call(['juju', 'ssh', unit] + command)

def remote_run_run(unit1, unit2, command):
    remote_run(unit1, ['juju-run', unit2, "'%s'" % command])

Then I can call, for example:

    remote_run_run('main-service/0', 'subordinate-service/0', '...')