Possible bug with variable snippet names
by James Cammarata
Can someone else see if they can reproduce this in a newer version? I'm
still running 1.6.8 in our production environment, so I'm not sure if this
has been fixed or not (or possibly even reported, since I have been paying
minimal attention to the mailing list/trac lately).
If I setup a variable snippet like this:
$SNIPPET("subdir/config_${some_variable}")
It doesn't work. But if I do this:
$SNIPPET("subdir/config_" + $some_variable)
It works fine. The odd thing is that, when using the syntax that doesn't
work and looking at the getks output (with $some_variable="foo"), I see
this:
# Unable to read /var/lib/cobbler/snippets/subdir/config_foo
So it's expanding the variable correctly at some point, even if it's just
when printing out the error message. It seems to be an order issue, where
the SNIPPET is not expanding the variable before looking for the file.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
13 years, 10 months