Forum: CFEngine Help Subject: Re: bundles: can a class argument be passed? Author: davidlee Link to topic: https://cfengine.com/forum/read.php?3,24675,24680#msg-24680
Thanks for the responses, which have been helpful. Now I think about it, my wish for a 'class' argument is really more like a boolean "something-or-other" that I can use in as class-like selector. So Todd's example probably provides me with a good way to get going. Overall I try to avoid having two bundles which do almost the same thing. In such a case it is far better design practice to have a single bundle with a controlling argument. (My actual application will then go on to call a choice of two further quite different "edit_line" bundles, depending on that incoming argument.) Thanks again. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine