projects
/
osm
/
N2VC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Addressed PR comments.
[osm/N2VC.git]
/
examples
/
unitrun.py
diff --git
a/examples/unitrun.py
b/examples/unitrun.py
index
d283e36
..
a5b294b
100644
(file)
--- a/
examples/unitrun.py
+++ b/
examples/unitrun.py
@@
-16,9
+16,9
@@
async def run_stuff_on_unit(unit):
print('Running command on unit', unit.name)
# unit.run() returns a client.ActionResults instance
print('Running command on unit', unit.name)
# unit.run() returns a client.ActionResults instance
-
stdout, stderr, code
= await unit.run('unit-get public-address')
+
action
= await unit.run('unit-get public-address')
- print(
'Unit public address is', stdout
)
+ print(
"Action results: {}".format(action.results)
)
# Inform asyncio that we're done.
await unit.model.disconnect()
# Inform asyncio that we're done.
await unit.model.disconnect()