Neil,

I've been trying to do something similar and have a ticket open. However, 
you're doing this in an agent bundle and I'm doing it in a common bundle, and 
I'm told that the common bundles do the expansion differently from agent 
bundles. Thus, moving my class creation into an agent bundle may not work as 
suggested (I've not tested it yet), especially since agent bundles' classes are 
not global like common classes are.

Justin

-----Original Message-----
From: help-cfengine-boun...@cfengine.org 
[mailto:help-cfengine-boun...@cfengine.org] On Behalf Of nwat...@symcor.com
Sent: Tuesday, March 16, 2010 1:43 PM
To: Ingersoll, Robert
Cc: help-cfengine@cfengine.org; help-cfengine-boun...@cfengine.org
Subject: RE: canonify promise_repaired

I wonder if the following is related.  I'm seeing this message:

R: WARNING: ^\s*dictionlist\s*=\s*/usr/share/dict/words\s* not found in 
/etc/security/
user
 !! Class identifier contains illegal characters
Promise (version not specified) belongs to bundle 'grepfile' in file 
'/var/cfengine/in
puts/library.cf' near line 341

    332 bundle agent grepfile(str, trg) {
    333 # Search a file for a regular expression and warn if found.
    334 
    335     vars:
    336         "result" string => canonify("${str}_${trg}");
    337         "file"   string => canonify("${trg}");
    338 
    339     classes:
    340 
    341         "${file}" expression => fileexists("${trg}");

This suggests that the canonify at line 337 did not work.  This is using 
Community 3.0.4.

Sincerely,
--
Neil Watson
416-673-3465

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

Reply via email to