On Wed, Dec 29, 2010 at 02:31:14PM +0100, Alexander Krauth wrote: > # HG changeset patch > # User Alexander Krauth <[email protected]> > # Date 1293629471 -3600 > # Node ID 57d3c84a3e4b0a5b053fb637e295174207494107 > # Parent 1f196eca3d29efe1ed0cef547ff62cba22e0941e > High: SAPInstance: Return errors for promote and demote action, if not called > in a clone environment (ocf-tester)
Applied with summary "Low: ..." > diff -r 1f196eca3d29 -r 57d3c84a3e4b heartbeat/SAPInstance > --- a/heartbeat/SAPInstance Wed Dec 29 14:28:30 2010 +0100 > +++ b/heartbeat/SAPInstance Wed Dec 29 14:31:11 2010 +0100 > @@ -790,6 +790,11 @@ > then > CLACT=_clone > else > + if [ "$ACTION" = "promote" -o "$ACTION" = "demote" ] > + then > + ocf_log err "$ACTION called in a non master/slave environment" > + exit $OCF_ERR_ARGS > + fi > sapinstance_init $OCF_RESKEY_InstanceName > fi > > _______________________________________________________ > Linux-HA-Dev: [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev > Home Page: http://linux-ha.org/ _______________________________________________________ Linux-HA-Dev: [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
