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