4 1. Connects to the current model
5 2. Starts an AllWatcher
6 3. Prints all changes received from the AllWatcher
7 4. Runs forever (kill with Ctrl-C)
13 from juju
.client
.connection
import Connection
14 from juju
.client
import client
19 conn
= await Connection
.connect()
20 allwatcher
= client
.AllWatcherFacade
.from_connection(conn
)
22 change
= await allwatcher
.Next()
23 for delta
in change
.deltas
:
27 if __name__
== '__main__':
28 logging
.basicConfig(level
=logging
.DEBUG
)
29 # Run loop until the process is manually stopped (watch will loop