On 25.11.2015 [15:33:12 -0300], Antonio Sebastian Salles M. wrote:
> Hi there,
>
> I'm looking the way for call a list of SNIPPETs using an array of
> ksmeta variables, but finally cheeta doesn't like it. Something like
> this:
What does cheeta say?
> cobbler ... --ksmeta="machinetype=kvm machineenv=db"
> ...
>
> #set $machinetype = $getVar('$machinetype')
> #set $machineenv = $getVar('$machineenv')
> $SNIPPET('spacewalk/1/$machinetype')
> $SNIPPET('spacewalk/1/$machineenv')
You *might* need to evaluate this outside of the $SNIPPET call. THat is,
try:
#set $machinetypesnippet = 'spacewalk/1/$getVar('$machinetype')'
#set $machineenvsnippet = 'spacewalk/1/$getVar('$machineenv')'
$SNIPPET($machinetypesnippet)
$SNIPPET($machineenvsnippet)
Does that make any difference?
-Nish
_______________________________________________
cobbler mailing list
[email protected]
https://lists.fedorahosted.org/admin/lists/[email protected]