Thanks, Mark. I realized I was doing this in four places (and update.cf has it in 2 places), so now I know I can simplify those instances to single function calls.
Justin -----Original Message----- From: Mark Burgess [mailto:mark.burg...@iu.hio.no] Sent: Friday, May 07, 2010 1:32 AM To: Justin Lloyd Cc: help-cfengine Subject: Re: classmatch+canonify vs. classify Classify canonifies the literal string, but does not take regexes as args, but canonify would remove regexes, so the effect would be the same, as you point out. Justin Lloyd wrote: > Stupid question: Is there any substantive difference between these two > class definitions? > > "the_policy_host" expression => > classmatch(canonify("policy.domain.com")); > > "the_policy_host" expression => classify("policy.domain.com"); > > These seem exactly the same according to the documentation. I just > wanted to make sure I wasn't missing something. > > Thanks, > Justin > -- Mark Burgess ------------------------------------------------- Professor of Network and System Administration Oslo University College, Norway Personal Web: http://www.iu.hio.no/~mark Office Telf : +47 22453272 ------------------------------------------------- This electronic communication and any attachments may contain confidential and proprietary information of DigitalGlobe, Inc. If you are not the intended recipient, or an agent or employee responsible for delivering this communication to the intended recipient, or if you have received this communication in error, please do not print, copy, retransmit, disseminate or otherwise use the information. Please indicate to the sender that you have received this communication in error, and delete the copy you received. DigitalGlobe reserves the right to monitor any electronic communication sent or received by its employees, agents or representatives. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine