Changelog: https://roxy-wi.org/changelog#7.1.1
This commit is contained in:
Aidaho
2024-01-17 09:08:27 +03:00
parent ce51059ed0
commit fdc7badc61
59 changed files with 772 additions and 912 deletions

View File

@@ -4498,3 +4498,16 @@ def check_ha_virt(vip_id: int) -> bool:
except Exception:
return False
return True
def select_ha_cluster_name_and_slaves() -> object:
try:
query = (
HaCluster.select(HaCluster.id, HaCluster.name, HaClusterSlave.server_id)
.join(HaClusterSlave)
)
result = query.execute()
except Exception as e:
out_error(e)
else:
return result