[cobbler] iterating of a list stored in ksmeta

James Cammarata jimi at sngx.net
Mon Mar 4 12:11:58 UTC 2013


>
>
>> I'm trying to iterate over the list of users to be able to create users
>> in my kickstart file.
>>
>> I was trying to do something like:
>> #for $uname = $users.split(',')
>> user --name=$user
>> #end for
>>
>
> You might have issues here as well since you're assigning the values to
> $uname in the for loop but then using the variable $user when attempting to
> print out the user.
>

Right, it should be:

#for $uname in $users.split(',')
user --name=$uname
#end for
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fedorahosted.org/pipermail/cobbler/attachments/20130304/1375dd02/attachment.html>


More information about the cobbler mailing list