1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-08 14:22:09 +03:00

feat(cmapi): MCOL-5806 Review and rebase interface fixes.

* feat(cmapi): add read_only param for API add node endpoint
* style(cmapi): fixes for string length and quotes
This commit is contained in:
mariadb-AlanMologorsky
2025-04-02 21:44:54 +03:00
committed by Alexander Presnyakov
parent 9a1ac0eb74
commit 93cd9354a9
5 changed files with 14 additions and 8 deletions

View File

@@ -543,7 +543,7 @@ def get_desired_nodes(config=DEFAULT_MCS_CONF_PATH):
def get_read_only_nodes(root) -> list[str]:
"""Get names of read-only nodes from config"""
return [node.text for node in root.findall("./ReadOnlyNodes/Node")]
return [node.text for node in root.findall('./ReadOnlyNodes/Node')]
def in_maintenance_state(config=DEFAULT_MCS_CONF_PATH):