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

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