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

Marek Grác marx at fedoraproject.org
Wed Jul 14 14:45:04 UTC 2010


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=4c4a0b491a95772e2f4ee3255d4c9a34e27098fc
Commit:        4c4a0b491a95772e2f4ee3255d4c9a34e27098fc
Parent:        89d8e3f8af61669ee3f046aa0b3156b156501ddd
Author:        Marek 'marx' Grac <mgrac at redhat.com>
AuthorDate:    Wed Jul 14 15:40:01 2010 +0200
Committer:     Marek 'marx' Grac <mgrac at redhat.com>
CommitterDate: Wed Jul 14 15:40:01 2010 +0200

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

Patch proposed by Hirotaka Igarashi <hiro at csrl.jp>

Resolves: rhbz#614457
---
 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