Re: cf3: getfields with a null field

2009-12-19 Thread Mark Burgess
Fixed the flag to allow these blanks. Brendan Strejcek wrote: > Hmm, edit_field has this: > > 7.6.1 edit_field (compound body) > > Type: (ext body) > > "allow_blank_fields" > > It seems like getfields needs a similar knob, if one doesn't already exist. > > On Tue, Dec 15, 2009 at 10:47 AM, M

Re: cf3: getfields with a null field

2009-12-15 Thread Brendan Strejcek
Hmm, edit_field has this: 7.6.1 edit_field (compound body) Type: (ext body) "allow_blank_fields" It seems like getfields needs a similar knob, if one doesn't already exist. On Tue, Dec 15, 2009 at 10:47 AM, Matt Richards wrote: > I am looking at getfields and it seems that if you have a null

cf3: getfields with a null field

2009-12-15 Thread Matt Richards
I am looking at getfields and it seems that if you have a null field, the value in the named array is not populated for that entry. For example: bundle agent test { vars: "passwd_match" int => getfields("^root:.*","/tmp/testfile",":","userdata"); reports: cfengine_3:: "