Greetings, I have written a STONITH resource agent and am seeking clarification on the following parameter attributes:
required and default Specifically, I would like to be ensured that there are some variables defined (and set to sensible defaults) and still allow people to override them, but not require them to. In the following xml snippet, does the STONITH subsystem use the 'default="3"' to seed the environment variable for later use in the actual code? <parameter name="reboot_sleep_delay" unique="0" required="0"> <content type="string" default="3" /> <shortdesc lang="en"> Sleep delay between turning the outlet(s) off and back on. </shortdesc> <longdesc lang="en"> Sleep delay in seconds between turning the outlet(s) off and back on. </longdesc> </parameter> I suppose I am asking the following: Do I need to define the default for a parameter in two places, once in the xml and once in the actual code? Thanks, -- Matt Zagrabelny - [EMAIL PROTECTED] - (218) 726 8844 University of Minnesota Duluth Information Technology Systems & Services PGP key 1024D/84E22DA2 2005-11-07 Fingerprint: 78F9 18B3 EF58 56F5 FC85 C5CA 53E7 887F 84E2 2DA2 He is not a fool who gives up what he cannot keep to gain what he cannot lose. -Jim Elliot
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
