From: Cory Johns Date: Wed, 1 Mar 2017 00:09:46 +0000 (-0500) Subject: Implement Model.get_status X-Git-Tag: 0.4.0~16^2~11 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=2a8a35b260385c6a0c0014f0f3e62975aff8b113;p=osm%2FN2VC.git Implement Model.get_status --- 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,