![](https://seccdn.libravatar.org/avatar/1471db58e7985d03f5658b54c2f9cf50.jpg?s=120&d=mm&r=g)
-----Original Message----- From: Ryan McCain [mailto:Ryan.McCain@dss.state.la.us] Sent: Wednesday, February 06, 2008 12:21 PM To: opensuse-autoinstall@opensuse.org Subject: Re: [opensuse-autoinstall] Trying to set NTP w/ <ask> on SLES10 SP1 (64bit)
On Wed, Feb 6, 2008 at 10:49 AM, in message <200802061749.54484.ug@suse.de>, Uwe Gansert <ug@suse.de> wrote: On Mittwoch, 6. Februar 2008, Ryan McCain wrote:
<general> <ask-list config:type="list"> <ask> <path>ntp-client,peer,address</path>
the <path> is wrong. Must be "ntp-client,peers,0,address"
What does the 0 signify?
"peers" is a list of "peer"-elements. The 0 tells autoyast to change the first element (peer) in that list. Each time you want to change an element of a list, you have to specify the index of that element (starting with 0)
Doesn't "address" tell AutoYast exactly where to go. It seems the 0 is redundant, no?
The "0" isn't specifying the element of the <peer> section to modify; it's specifying the child-element of <peers> to alter. The XML tree looks roughly like this: <ntp-client> <peers config:type="list"> <peer> <address>xxxx</address> ..... So, the path would be ntp-client,peers,peer,address -- _but_, the "config:type=list" changes that. Since it's a list, just specifying the name of the element that you want to modify is ambiguous (even if there's only one element with that name). So, in the case where there's an element in the path with config:type="list", you need to specify the index of its child that you want to modify, instead of the name of the child. That's what the "0" is doing. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org