Issue #9112 has been updated by James Turnbull.

Assignee changed from Matt Robinson to Daniel Pittman


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

Author: Trevor Vaughan
Status: Accepted
Priority: High
Assignee: Daniel Pittman
Category: file
Target version: 
Affected Puppet version: 2.7.6
Keywords: tidy, file, duplicate resource
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 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