resource-agents: master - resource-agents: RA for psql does not work correctly with netmask

Lon Hohberger lon at fedoraproject.org
Tue Jul 20 16:01:28 UTC 2010


Gitweb:        http://git.fedorahosted.org/git/resource-agents.git?p=resource-agents.git;a=commitdiff;h=1ff1ba755ba4b22d050673521fbff6cdc38e0404
Commit:        1ff1ba755ba4b22d050673521fbff6cdc38e0404
Parent:        3eb441fbe9e76d7b57dbe60a6c7817b641040e55
Author:        Hirotaka Igarashi <hiro at csrl.jp>
AuthorDate:    Wed Jul 14 15:40:01 2010 +0200
Committer:     Lon Hohberger <lhh at redhat.com>
CommitterDate: Tue Jul 20 11:59:06 2010 -0400

resource-agents: RA for psql does not work correctly with netmask

Resolves: rhbz#614457

Signed-off-by: Marek 'marx' Grac <mgrac at redhat.com>
---
 rgmanager/src/resources/postgres-8.sh |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/rgmanager/src/resources/postgres-8.sh b/rgmanager/src/resources/postgres-8.sh
index 689c6e2..b0b59c7 100644
--- a/rgmanager/src/resources/postgres-8.sh
+++ b/rgmanager/src/resources/postgres-8.sh
@@ -71,6 +71,7 @@ generate_config_file()
 
 	declare x=1
 	for i in $ip_addressess; do
+		i=`echo $i | sed -e 's/\/.*$//'`
 		if [ $x -eq 1 ]; then
 			x=0
 			ip_comma=$i


More information about the cluster-commits mailing list