File 0003-exportfs-Add-IPv6-support.patch of Package resource-agents.8843

From ecefb4be30680a0b93719b53842ec6b6571a15f5 Mon Sep 17 00:00:00 2001
From: Laurent Grawet <laurent.grawet@uclouvain.be>
Date: Mon, 20 Jun 2016 15:50:06 +0200
Subject: [PATCH 03/12] exportfs: Add IPv6 support

---
 heartbeat/exportfs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/heartbeat/exportfs b/heartbeat/exportfs
index bf4191e..c6ea920 100755
--- a/heartbeat/exportfs
+++ b/heartbeat/exportfs
@@ -270,7 +270,7 @@ exportfs_monitor ()
 		return $OCF_NOT_RUNNING
 	fi
 
-	if forall is_exported "${OCF_RESKEY_clientspec}"; then
+	if forall is_exported "$(echo "${OCF_RESKEY_clientspec}" | tr -d '[]')"; then
 		if [ ${OCF_RESKEY_rmtab_backup} != "none" ]; then
 			forall backup_rmtab
 		fi
-- 
2.10.1

openSUSE Build Service is sponsored by