6 Run arbitrary commands on a unit with the
7 :meth:`juju.unit.Unit.run` method. This method blocks
8 the current coroutine until a result is available, and
9 returns a :class:`juju.action.Action` instance.
14 from juju.model import Model
17 await model.connect_current()
19 ubuntu_app = await model.deploy(
21 application_name='ubuntu',
26 for unit in app.units:
27 action = await unit.run('unit-get public-address')
30 action = await unit.run('uname -a')