projects
/
osm
/
N2VC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor improvements
[osm/N2VC.git]
/
juju
/
application.py
diff --git
a/juju/application.py
b/juju/application.py
index
83c2275
..
69f412f
100644
(file)
--- a/
juju/application.py
+++ b/
juju/application.py
@@
-41,14
+41,14
@@
class Application(model.ModelEntity):
"""Get the application status, as set by the charm's leader.
"""
"""Get the application status, as set by the charm's leader.
"""
- return self.data['status']['current']
+ return self.
safe_
data['status']['current']
@property
def status_message(self):
"""Get the application status message, as set by the charm's leader.
"""
@property
def status_message(self):
"""Get the application status message, as set by the charm's leader.
"""
- return self.data['status']['message']
+ return self.
safe_
data['status']['message']
@property
def tag(self):
@property
def tag(self):
@@
-88,7
+88,7
@@
class Application(model.ModelEntity):
result = await app_facade.AddUnits(
application=self.name,
result = await app_facade.AddUnits(
application=self.name,
- placement=[parse_placement(to)],
+ placement=[parse_placement(to)]
if to else None
,
num_units=count,
)
num_units=count,
)