3 from juju
.client
.connection
import Connection
4 from juju
.client
import watcher
7 loop
= asyncio
.get_event_loop()
8 conn
= loop
.run_until_complete(Connection
.connect_current())
12 allwatcher
= watcher
.AllWatcher()
13 allwatcher
.connect(conn
)
15 change
= await allwatcher
.Next()
16 for delta
in change
.deltas
:
19 loop
.run_until_complete(watch())