X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=examples%2Ffullstatus.py;h=7589c7f3161e436d6a378246ef8a1f9e63d51778;hb=01df4afcb5ff210724d9e8702539aee811a36092;hp=55c86f8bfbd975568f797f626d2c19e754a43fcc;hpb=7d8aa55bcfc13519a9b37b49e4d7a542f0adcd43;p=osm%2FN2VC.git diff --git a/examples/fullstatus.py b/examples/fullstatus.py index 55c86f8..7589c7f 100644 --- a/examples/fullstatus.py +++ b/examples/fullstatus.py @@ -1,7 +1,7 @@ import asyncio from juju.client.connection import Connection -from juju.client.client import Client +from juju.client.client import ClientFacade loop = asyncio.get_event_loop() @@ -9,14 +9,14 @@ conn = loop.run_until_complete(Connection.connect_current()) async def status(): - client = Client() + client = ClientFacade() client.connect(conn) patterns = None status = await client.FullStatus(patterns) await conn.close() - print('Services:', list(status.services.keys())) + print('Applications:', list(status.applications.keys())) print('Machines:', list(status.machines.keys())) print('Relations:', status.relations)