Skip to content

Commit

Permalink
refactor: use get_node_role_raw
Browse files Browse the repository at this point in the history
  • Loading branch information
pcfreak30 committed Dec 18, 2024
1 parent cbc2fb4 commit 0510134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mysql-role.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ ensure_role_consistency() {

if [ -n "$node_info" ]; then
local etcd_role
etcd_role=$(get_node_role "$node_info")
etcd_role=$(get_node_role_raw "$node_info")

if [ "$etcd_role" != "$current_role" ]; then
log_warn "Role mismatch detected - etcd: $etcd_role, local: $current_role"
Expand Down

0 comments on commit 0510134

Please sign in to comment.