From 2a8a35b260385c6a0c0014f0f3e62975aff8b113 Mon Sep 17 00:00:00 2001 From: Cory Johns Date: Tue, 28 Feb 2017 19:09:46 -0500 Subject: [PATCH] Implement Model.get_status --- juju/model.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/juju/model.py b/juju/model.py index 1106a16..63c306b 100644 --- a/juju/model.py +++ b/juju/model.py @@ -1305,15 +1305,17 @@ class Model(object): """ raise NotImplementedError() - def get_status(self, filter_=None, utc=False): + async def get_status(self, filters=None, utc=False): """Return the status of the model. - :param str filter_: Service or unit name or wildcard ('*') + :param str filters: Optional list of applications, units, or machines + to include, which can use wildcards ('*'). :param bool utc: Display time as UTC in RFC3339 format """ - raise NotImplementedError() - status = get_status + client_facade = client.ClientFacade() + client_facade.connect(self.connection) + return await client_facade.FullStatus(filters) def sync_tools( self, all_=False, destination=None, dry_run=False, public=False, -- 2.17.1