X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=examples%2Fallwatcher.py;h=c78d689fe9d18588791bbfb8cf15b4f8e5617aa0;hb=dbcac620b62e16f9e4b7a763e1400f2f3a79b285;hp=c215d20cb33ef66ac21e8ec63bf577428930c0ae;hpb=65d71ab71ce1aaf9ca3aeeee7dd6cb8793278b3e;p=osm%2FN2VC.git diff --git a/examples/allwatcher.py b/examples/allwatcher.py index c215d20..c78d689 100644 --- a/examples/allwatcher.py +++ b/examples/allwatcher.py @@ -11,14 +11,13 @@ import asyncio import logging from juju.client.connection import Connection -from juju.client import watcher +from juju.client import client from juju import loop async def watch(): - allwatcher = watcher.AllWatcher() conn = await Connection.connect_current() - allwatcher.connect(conn) + allwatcher = client.AllWatcherFacade.from_connection(conn) while True: change = await allwatcher.Next() for delta in change.deltas: