3. Runs forever (kill with Ctrl-C)
"""
-import asyncio
-
from juju.model import Model
from juju import loop
async def watch_model():
model = Model()
- await model.connect_current()
+ # connect to current model with current user, per Juju CLI
+ await model.connect()
model.add_observer(on_model_change)