We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d64c2c4 commit 0329e07Copy full SHA for 0329e07
src/jockey/core.py
@@ -299,7 +299,7 @@ def is_app_principal(status: JujuStatus, app_name: str) -> bool:
299
is_principal (bool)
300
Whether the indicated application is principal.
301
"""
302
- return status["applications"][app_name].get("subordinate-to") is None
+ return bool(status["applications"][app_name].get("subordinate-to"))
303
304
305
def get_principal_unit_for_subordinate(status: JujuStatus, unit_name: str) -> str:
0 commit comments