Like a charm!
What designates the fields in the regex? I'm having trouble finding
documentation on that part.

David

On Tue, Aug 23, 2011 at 4:59 PM, Stefan Schulte
<stefan.schu...@taunusstein.net> wrote:
> On Tue, Aug 23, 2011 at 04:19:40PM -0400, David Kavanagh wrote:
>> for reference, here's how the regex matches the trailing comment;
>> http://rubular.com/r/vJUtBWpB6J
>>
>
> Yes, rubular shows all fields but the last field is in fact nil and not an
> empty string. Try to replace
>
>  str += " # #{hash[:comment]}" if hash[:comment] != :absent
>
> with
>
>  str += " # #{hash[:comment]}" unless hash[:comment].nil?
>
> Does this work?
>
> -Stefan
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to