Blame SOURCES/bz1391580-portblock-return-success-on-stop-with-invalid-ip.patch

15862b
From 501316b1c6c072c8750c8bd951594a4e1ef408f4 Mon Sep 17 00:00:00 2001
15862b
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
15862b
Date: Fri, 25 Nov 2016 12:13:17 +0100
15862b
Subject: [PATCH] IPaddr2: return success on stop with invalid IP
15862b
15862b
---
15862b
 heartbeat/IPaddr2 | 2 +-
15862b
 1 file changed, 1 insertion(+), 1 deletion(-)
15862b
15862b
diff --git a/heartbeat/IPaddr2 b/heartbeat/IPaddr2
15862b
index b224ca5..aea7a19 100755
15862b
--- a/heartbeat/IPaddr2
15862b
+++ b/heartbeat/IPaddr2
15862b
@@ -351,7 +351,7 @@ ip_init() {
15862b
 		exit $OCF_ERR_INSTALLED
15862b
 	fi
15862b
 
15862b
-	if [ X"$OCF_RESKEY_ip" = "X" ]; then
15862b
+	if [ X"$OCF_RESKEY_ip" = "X" ] && [ "$__OCF_ACTION" != "stop" ]; then
15862b
 		ocf_exit_reason "IP address (the ip parameter) is mandatory"
15862b
 		exit $OCF_ERR_CONFIGURED
15862b
 	fi