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

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