Blame SOURCES/bz1750261-Route-1-dont-fence-when-parameters-not-set.patch

b4b3ce
From 1286636b768bb635e9a6b1f1fbf6267c9c3f4b03 Mon Sep 17 00:00:00 2001
b4b3ce
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
b4b3ce
Date: Mon, 19 Aug 2019 13:31:06 +0200
b4b3ce
Subject: [PATCH] Route: dont fence node when parameters arent set
b4b3ce
b4b3ce
---
b4b3ce
 heartbeat/Route | 6 +++---
b4b3ce
 1 file changed, 3 insertions(+), 3 deletions(-)
b4b3ce
b4b3ce
diff --git a/heartbeat/Route b/heartbeat/Route
b4b3ce
index b4011e37d..9f92eff3a 100755
b4b3ce
--- a/heartbeat/Route
b4b3ce
+++ b/heartbeat/Route
b4b3ce
@@ -249,18 +249,18 @@ route_validate() {
b4b3ce
     if [ "${OCF_RESKEY_CRM_meta_clone}" ]; then
b4b3ce
 	if [ "${OCF_RESKEY_CRM_meta_clone_node_max}" != 1 ]; then
b4b3ce
 	    ocf_exit_reason "Misconfigured clone parameters. Must set meta attribute \"clone_node_max\" to 1, got ${OCF_RESKEY_CRM_meta_clone_node_max}."
b4b3ce
-	    return $OCF_ERR_ARGS
b4b3ce
+	    return $OCF_ERR_CONFIGURED
b4b3ce
 	fi
b4b3ce
     fi
b4b3ce
     # Did we get a destination?
b4b3ce
     if [ -z "${OCF_RESKEY_destination}" ]; then
b4b3ce
 	ocf_exit_reason "Missing required parameter \"destination\"."
b4b3ce
-	return $OCF_ERR_ARGS
b4b3ce
+	return $OCF_ERR_CONFIGURED
b4b3ce
     fi
b4b3ce
     # Did we get either a device or a gateway address?
b4b3ce
     if [ -z "${OCF_RESKEY_device}" -a -z "${OCF_RESKEY_gateway}" ]; then
b4b3ce
 	ocf_exit_reason "Must specify either \"device\", or \"gateway\", or both."
b4b3ce
-	return $OCF_ERR_ARGS
b4b3ce
+	return $OCF_ERR_CONFIGURED
b4b3ce
     fi
b4b3ce
     # If a device has been configured, is it available on this system?
b4b3ce
     if [ -n "${OCF_RESKEY_device}" ]; then