Issue #12138 has been updated by Daniel Pittman.

Status changed from Unreviewed to Rejected

Hunter Haugen wrote:
> When using the `host` resource, if a host entry has a comment but the 
> resource managing that entry either has no `comment =>` attribute, or if it 
> has `comment => undef` then the comment is untouched in `/etc/hosts`.
> 
> I would expect either of these options to *remove* the comment, and it only 
> to be present if it is specified in the `host` resource.

Setting an attribute to `undef`, or leaving it out entirely, are equivalent, 
and are generally the "unknown" rather than "absent" state for a resource in 
our model.  So, rejecting this, since we don't need it to be inconsistent with 
other, similar parts of our model.
----------------------------------------
Bug #12138: Host resource should manage comment property
https://projects.puppetlabs.com/issues/12138

Author: Hunter Haugen
Status: Rejected
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


When using the `host` resource, if a host entry has a comment but the resource 
managing that entry either has no `comment =>` attribute, or if it has `comment 
=> undef` then the comment is untouched in `/etc/hosts`.

I would expect either of these options to *remove* the comment, and it only to 
be present if it is specified in the `host` resource.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to