Issue #6628 has been reported by Paul Berry.
----------------------------------------
Bug #6628: Parsed file providers fail to replace missing entries on first run
where they are missing
https://projects.puppetlabs.com/issues/6628
Author: Paul Berry
Status: Accepted
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version:
Keywords:
Branch:
I discovered this bug while trying to write integration tests for the mount
provider. Thanks to Nick Lewis for helping me narrow it down to a reproducible
test case.
Steps to reproduce:
* Start a master running this manifest:
host { "foo": ip => '1.2.3.4', target => "/tmp/hosts" }
* Start a client using the options `--verbose --no-daemonize --runinterval 60
--no-onetime` so that the client runs every 60 seconds.
* After the client runs for the first time, open `/tmp/hosts` and delete the
line
1.2.3.4 foo
* After the client runs for the second time, reload the file `/tmp/hosts`.
Expected behavior: the missing line should be back. Observed behavior: it
isn't.
* After the client runs for the third time, reload the file `/tmp/hosts`. The
missing line is now back.
--
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.