projects
/
osm
/
N2VC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6ec9ae9
)
Implement Model.get_status
author
Cory Johns
<johnsca@gmail.com>
Wed, 1 Mar 2017 00:09:46 +0000
(19:09 -0500)
committer
Cory Johns
<johnsca@gmail.com>
Fri, 3 Mar 2017 16:33:39 +0000
(11:33 -0500)
juju/model.py
patch
|
blob
|
history
diff --git
a/juju/model.py
b/juju/model.py
index
1106a16
..
63c306b
100644
(file)
--- a/
juju/model.py
+++ b/
juju/model.py
@@
-1305,15
+1305,17
@@
class Model(object):
"""
raise NotImplementedError()
"""
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.
"""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
"""
: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,
def sync_tools(
self, all_=False, destination=None, dry_run=False, public=False,