Forum: CFEngine Help
Subject: Re: Variable Class Names
Author: bbomgardner
Link to topic: https://cfengine.com/forum/read.php?3,22838,22958#msg-22958
Yes, indeed...
It probably is a good idea to keep the canonify in the code as a reminder that
your class name may not necessarily match the value
Forum: CFEngine Help
Subject: Re: Variable Class Names
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,22838,22952#msg-22952
zzamboni Wrote:
---
> Thanks for the tip, Ben! This is nice, since it
> saves the additional canonify(
Forum: CFEngine Help
Subject: Re: Variable Class Names
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,22838,22859#msg-22859
Thanks for the tip, Ben! This is nice, since it saves the additional canonify()
step.
___
Help-cfengine m
Forum: CFEngine Help
Subject: Re: Variable Class Names
Author: bbomgardner
Link to topic: https://cfengine.com/forum/read.php?3,22838,22858#msg-22858
A quick test shows that that cfengine will actually canonify the string
automatically in this case. This is news to me, as I thought that it would
Forum: CFEngine Help
Subject: Re: Variable Class Names
Author: jordy
Link to topic: https://cfengine.com/forum/read.php?3,22838,22855#msg-22855
That is the solution!... thank you so much Diego!!
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
Forum: CFEngine Help
Subject: Re: Variable Class Names
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,22838,22852#msg-22852
You need to use canonify, and then use the variable in a class expression.
Canonify ensures that the string only has characters that are valid in clas
Forum: CFEngine Help
Subject: Re: Variable Class Names
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,22838,22846#msg-22846
No, I can't show you an example. Looking thoroughly into the reference manual,
I've figured out that classify() won't really help, so that you
Forum: CFEngine Help
Subject: Re: Variable Class Names
Author: jordy
Link to topic: https://cfengine.com/forum/read.php?3,22838,22844#msg-22844
Thank you Seva... could you show us an example? I don't understand how to
create a variable name class (I know how to create a fixed name class, but not
Forum: CFEngine Help
Subject: Re: Variable Class Names
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,22838,22842#msg-22842
Use classify function
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.or