- print('Running command on unit', unit.Name)
- # unit.run() returns a client.ActionResults instance
- action_results = await unit.run('unit-get public-address')
- _seen_units.add(unit.Name)
- action_result = action_results.results[0]
+ # unit.run() returns a juju.action.Action instance
+ action = await unit.run('unit-get public-address')
+ logging.debug("Action results: %s", action.results)