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