We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 939a375 commit 1279b68Copy full SHA for 1279b68
1 file changed
juju/application.py
@@ -64,6 +64,11 @@ def units(self):
64
if unit.application == self.name
65
]
66
67
+ @property
68
+ def subordinate_units(self):
69
+ """Returns the subordinate units of this application"""
70
+ return [u for u in self.units if u.is_subordinate]
71
+
72
@property
73
def relations(self):
74
return [rel for rel in self.model.relations if rel.matches(self.name)]
0 commit comments