Issue #9112 has been updated by Charlie Sharpsteen.

Keywords changed from tidy, file, duplicate resource to tidy, file, duplicate 
resource customer

----------------------------------------
Bug #9112: "Duplicate generated resource; skipping" when using Tidy with File.
https://projects.puppetlabs.com/issues/9112#change-88606

* Author: Trevor Vaughan
* Status: Closed
* Priority: Urgent
* Assignee: Daniel Pittman
* Category: file
* Target version: 
* Affected Puppet version: 
* Keywords: tidy, file, duplicate resource customer
* Branch: 
----------------------------------------
The following code produces the 'info' statement "Duplicate generated resource; 
skipping" when run under 'puppet agent'. 'puppet apply' does not appear to have 
the same issue.

<pre>
file { '/tmp/foo':
  ensure => 'directory',
  mode => '644'
}

file { [
  '/tmp/foo/bar',
  '/tmp/foo/bar1',
  '/tmp/foo/bar2'
  ]:
  ensure => 'file',
  owner => 'root',
  group => 'root',
  mode => '644',
  content => "test\n"
}

exec { 'make_baz':
  command => '/bin/echo "test" > /tmp/foo/baz',
  require => File['/tmp/foo']
}

tidy { '/tmp/foo':
  size => '0b',
  recurse => 'true',
  rmdirs => 'true'
}
</pre>

Output:

<pre>
notice: /Stage[main]//Node[test.test.net]/Tidy[/tmp/foo]: Tidying File[/tmp/foo]
notice: /Stage[main]//Node[test.test.net]/Tidy[/tmp/foo]: Tidying 
File[/tmp/foo/bar1]
notice: /Stage[main]//Node[test.test.net]/Tidy[/tmp/foo]: Tidying 
File[/tmp/foo/baz]
notice: /Stage[main]//Node[test.test.net]/Tidy[/tmp/foo]: Tidying 
File[/tmp/foo/bar]
notice: /Stage[main]//Node[test.test.net]/Tidy[/tmp/foo]: Tidying 
File[/tmp/foo/bar2]
info: /File[/tmp/foo/bar2]: Duplicate generated resource; skipping
info: /File[/tmp/foo/bar1]: Duplicate generated resource; skipping
info: /File[/tmp/foo/bar]: Duplicate generated resource; skipping
info: /File[/tmp/foo]: Duplicate generated resource; skipping
</pre>


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to