Public bug reported:
I found the following error message:
rg_test test /etc/cluster/cluster.conf status service ldapslave
....
<err> script:DRBD ldapslave: status of /usr/local/bin/mm_drbd_ldapslave
failed (returned 1)
//usr/share/cluster/script.sh: line 118: return: can only `return' from a
function or sourced script
Status check of ldapslave failed
Patch:
--- /root/script.sh.orig 2007-07-16 13:50:19.000000000 +0200
+++ /usr/share/cluster/script.sh 2007-07-16 13:24:36.000000000 +0200
@@ -115,5 +115,5 @@
declare -i rv=$?
if [ $rv -ne 0 ]; then
ocf_log err "script:$OCF_RESKEY_name: $1 of $OCF_RESKEY_file failed
(returned $rv)"
- return $OCF_ERR_GENERIC
+ exit $OCF_ERR_GENERIC
fi
Now it looks better:
rg_test test /etc/cluster/cluster.conf status service ldapslave
Running in test mode.
....
err> script:DRBD ldapslave: status of /usr/local/bin/mm_drbd_ldapslave
failed (returned 1)
Status check of ldapslave failed
** Affects: cman (Ubuntu)
Importance: Undecided
Status: New
--
Failure in /usr/share/cluster/script.h return instead of exit
https://bugs.launchpad.net/bugs/126326
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs