On 07/10/2011 10:34, no-re...@cfengine.com wrote: > Forum: CFEngine Help > Subject: Re: CFEngine Help: ifvarclass and "Unable to parse class expression" > Author: svenXY > Link to topic: https://cfengine.com/forum/read.php?3,23679,23680#msg-23680 > > Hi Nicolas, thanks for the reply. > > Nicolas Charles Wrote: > ------------------------------------------------------- >> type. I guess it should read >> >> "next_iface" >> string => "${virtuals}", >> classes => >> if_repaired("has_next_interface"), >> >> # the ifavarclass is the problem, I only >> get the error message as in the subject. >> ifvarclass => >> not(classify("has_${base_iface}_${virtuals}")); > I don't seem to be able to spot the difference to my code here. > Oh, i should have explained it The line :
classes => "has_next_interface", is not correct. Classes refers to a body, not a literal. It should be something like : classes => if_repaired("has_next_interface"), >> The "utf8" problem seems to be indeed linked to >> the use of slist in a >> ifvarclass with function. Usually, it's a pointer >> problem within the >> code of CFEngine, > Good to know, if it's a bug, did someone already take a look at it? > Should I file a bug report? A bug report is a must, yes Best regards _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine