Mailinglist Archive: opensuse-autoinstall (72 mails)
| < Previous | Next > |
RE: [opensuse-autoinstall] Trying to set NTP w/ <ask> on SLES10 SP1 (64bit)
- From: "Marlier, Ian" <ian.marlier@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 6 Feb 2008 12:45:29 -0500
- Message-id: <B9BD59104C7FE34DB2610B2B2CA2B78F02131E@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
-----Original Message-----
From: Ryan McCain [mailto:Ryan.McCain@xxxxxxxxxxxxxxx]
Sent: Wednesday, February 06, 2008 12:21 PM
To: opensuse-autoinstall@xxxxxxxxxxxx
Subject: Re: [opensuse-autoinstall] Trying to set NTP w/
<ask> on SLES10 SP1 (64bit)
<200802061749.54484.ug@xxxxxxx>,On Wed, Feb 6, 2008 at 10:49 AM, in message
Uwe Gansert <ug@xxxxxxx> wrote:
On Mittwoch, 6. Februar 2008, Ryan McCain wrote:to change the
<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
first element (peer) in that list.to specify the
Each time you want to change an element of a list, you have
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx
| < Previous | Next > |