Hi everybody,

I want to pass an array to a kickstart file via ksmeta e.g.

cobbler add system [...] --ksmeta="NUMBERS=[\'no1\',\'no2\']" [...]

When I do a dumpvars on the system I get:
..
'mgmt_parameters': {'NUMBERS': '['no1','no2']'},
..

That seems to be o.k.

The kickstart template looks like this:

#set $NUMBERS = $getVar('$NUMBERS', '')
echo "$NUMBERS -- $NUMBERS[0]"

The generated kickstart file is:
echo "['no1','no2'] -- ["

So NUMBERS is interpreted as a literal and not an array. I was expecting:
echo "['no1','no2'] -- no1"

So my question is how can I get what I expected and make Cheetah interpret the contents of $NUMBERS as an array and not a literal?

Thanks and cheers,
Jens





begin:vcard
fn:Jens Ahrens
n:Ahrens;Jens
org;quoted-printable;quoted-printable:Johannes Gutenberg-Universit=C3=A4t Mainz;Zentrum f=C3=BCr Datenverarbeitung
adr:;;Anselm-Franz-von-Bentzel-Weg 12;Mainz;Rheinland-Pfalz;55128;Deutschland
email;internet:[email protected]
title:Dr. rer. nat. Jens Christopher Ahrens
tel;work:+4961313926331
tel;cell:+4917626235793
x-mozilla-html:FALSE
version:2.1
end:vcard

_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to