Skip to content

Commit 2db8512

Browse files
author
yb
committed
fix get_except_nodes get readonly nodes error
1 parent 388b075 commit 2db8512

File tree

1 file changed

+2
-2
lines changed
  • platforms/kubernetes/postgres-operator/postgres

1 file changed

+2
-2
lines changed

platforms/kubernetes/postgres-operator/postgres/handle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4063,10 +4063,10 @@ def get_except_nodes(
40634063
except_readwrite_nodes = len(OLD)
40644064

40654065
if FIELD == DIFF_FIELD_READONLY_REPLICAS:
4066-
except_readwrite_nodes = OLD
4066+
except_readonly_nodes = OLD
40674067

40684068
if FIELD == DIFF_FIELD_READONLY_MACHINES:
4069-
except_readwrite_nodes = len(OLD)
4069+
except_readonly_nodes = len(OLD)
40704070

40714071
return except_readwrite_nodes + except_readonly_nodes
40724072

0 commit comments

Comments
 (0)