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', '...')
Python workaround:
import subprocess
def remote_run(unit, command): check_call( ['juju' , 'ssh', unit] + command)
subprocess.
def remote_ run_run( unit1, unit2, command): run(unit1, ['juju-run', unit2, "'%s'" % command])
remote_
Then I can call, for example:
remote_ run_run( 'main-service/ 0', 'subordinate- service/ 0', '...')