in src/modules/get_cluster_status_db.py [0:0]
def _is_cluster_stable(self) -> bool:
"""
Check if both primary and secondary nodes are identified.
:return: True if both nodes are identified, False otherwise.
:rtype: bool
"""
return self.result["primary_node"] != "" and self.result["secondary_node"] != ""