diff options
author | Nate Butler <nathan.butler@gmail.com> | 2016-09-01 15:47:27 -0400 |
---|---|---|
committer | Nate Butler <nathan.butler@gmail.com> | 2016-09-01 15:54:31 -0400 |
commit | 5e46486d3ea2d15984edfb28875471436f466a65 (patch) | |
tree | fd321e2b314f0c52849b220e64cffb7a55a0af5d /97e64b52f63f3dd673dfa2fe92c71d4d9ddbcbc7:/spec/acceptance | |
parent | 54e3af8b1bb4aa141264bb5cd8b0ffb447361f16 (diff) |
Fix bug in ensure => absent
The insync? method wasn't accounting for a condition where the state was
absent and the desired state was absent. This manifest itself in puppet
runs that would constantly output the following after setting
ensure => absent.
2016-09-01T16:39:27.314283+00:00 vcstest puppet-agent[1161]: (/Stage[main]/Main/Node[vcstest]/Vcsrepo[/home/vagrant/test]/ensure) created
2016-09-01T16:40:22.583125+00:00 vcstest puppet-agent[1727]: (/Stage[main]/Main/Node[vcstest]/Vcsrepo[/home/vagrant/test]/ensure) created
2016-09-01T16:41:04.031750+00:00 vcstest puppet-agent[2267]: (/Stage[main]/Main/Node[vcstest]/Vcsrepo[/home/vagrant/test]/ensure) created
2016-09-01T16:42:51.779816+00:00 vcstest puppet-agent[2911]: (/Stage[main]/Main/Node[vcstest]/Vcsrepo[/home/vagrant/test]/ensure) created
2016-09-01T16:43:42.189035+00:00 vcstest puppet-agent[3466]: (/Stage[main]/Main/Node[vcstest]/Vcsrepo[/home/vagrant/test]/ensure) created
I added unit tests for the vcsrepo type and then fixed the code.
Diffstat (limited to '97e64b52f63f3dd673dfa2fe92c71d4d9ddbcbc7:/spec/acceptance')
0 files changed, 0 insertions, 0 deletions