On Wed, 02 Mar 2011 00:12:20 -0800, petermity <[email protected]> wrote: > How can I check for the existence of a snippet file before > attempting to include it? That is, something like this: > > #set $mysnippet = $mysnipdir + '/mysnipfile' > > #if file_exists('$mysnippet') > $SNIPPET('$mysnippet') > #end if
I believe the snippet code will simply not do anything if the snippet you include doesn't exist. If not, I think we should do that. Perhaps leaving behind a '#SNIPPET foo not found'. -- Scott Henson Red Hat CIS Operator WVU Alum BSAE/BSME
pgpQDyWbAdvVQ.pgp
Description: PGP signature
_______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler
