it's safe to assume that virtual ip is always at master
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 31 Aug 2017 13:49:41 +0000 (15:49 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 31 Aug 2017 13:49:41 +0000 (15:49 +0200)
t/99-primary-ip.sh

index 9f43db2..e17529c 100755 (executable)
@@ -1,6 +1,6 @@
 NODE=`psql -h 10.200.1.60 -p 9999 -c 'show pool_nodes' postgres postgres | grep primary | awk '{ print $3 }'`
 if [ -z "$NODE" ] ; then
-       echo 10.200.1.61
+       echo 10.200.1.60
 else
        grep $NODE hosts | awk '{ print $1 }'
 fi