Issue #3081 has been updated by Markus Roberts. Target version changed from 0.25.4 to 0.25.5
The problem is the inconsistent treatment of the trailing delimiter being generated between the name and the (empty) alias list. It should either not be generated in the case of "host_aliases => []" or host aliases should consider the disparate ways of writing "no host aliases" as being in sync. This same behavior can be seen as far back as 0.24.8, and involves code (the parsed file provider) that's already being considered for refactoring. Therefore it doesn't belong in an emergency bug fix release. ---------------------------------------- Bug #3081: Unable to specify absence of host host_aliases http://projects.reductivelabs.com/issues/3081 Author: Peter Pickford Status: Accepted Priority: Normal Assigned to: Markus Roberts Category: host Target version: 0.25.5 Affected version: 0.25.4rc1 Keywords: Branch: I doesn't seem possible to remove and alias from the hosts file given /etc/hosts 1.1.1.1 buildsun4u notwanted host { "hosts buildsun4u" : ip => "1.1.1.1", name => "buildsun4u", ensure => present, host_aliases => absent, } changes to 1.1.1.1 buildsun4u absent host { "hosts buildsun4u" : ip => "1.1.1.1", name => "buildsun4u", ensure => present, host_aliases => "", } changes to "1.1.1.1 buildsun4u " this is repeated on every run so /etc/hosts is constantly updated Jan 16 18:29:29 buildsun4u puppetd[6572]: [ID 702911 daemon.notice] (//base::default/Host[hosts buildsun4u]/host_aliases) host_aliases changed 'absent' to '' -- 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://reductivelabs.com/redmine/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.
