Eventscripts - new function ctdb_check_args()
authorMartin Schwenke <martin@meltin.net>
Tue, 23 Aug 2011 06:32:34 +0000 (16:32 +1000)
committerMartin Schwenke <martin@meltin.net>
Mon, 29 Aug 2011 23:33:47 +0000 (09:33 +1000)
commit36de7e7fd6dfeed61ef9977b8d5b568f90a9707b
treec6f9c2be717b5fca025939bdc42d8bdf8561523d
parente8d9c0b251c84d6fdf6ea7d972e5f7d1d0222f9b
Eventscripts - new function ctdb_check_args()

Pass this "$@" to do common eventscript argument checking.

For regular use putting this in 00.ctdb would be enough.  However, for
developer testing it can be useful to call this in other eventscripts.
For example, 10.interfaces and 13.per_ip_routing currently check these
by hand.

Signed-off-by: Martin Schwenke <martin@meltin.net>
config/functions