-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

No problem, I appreciate the response.

It *appears* to be more annoying than anything but I worry a bit about unknown 
side effects with this sort of thing.

Trevor

On 09/12/2011 07:35 PM, [email protected] wrote:
> 
> Issue #9112 has been updated by Daniel Pittman.
> 
> 
> Trevor Vaughan wrote:
>> Any chance of this getting into 2.7.4?
> 
> G'day Trevor.
> 
> We have this on the list of things to take a look at on Friday, and should be 
> able to make a decision around it then.
> 
> Thanks for the report, and sorry it has taken so long to get attention.
> 
> ----------------------------------------
> 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: Matt Robinson
> Category: file
> Target version: 
> Affected Puppet version: 2.7.3
> 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>
> 
> 

- -- 
Trevor Vaughan
 Vice President, Onyx Point, Inc.
 email: [email protected]
 phone: 410-541-ONYX (6699)
 pgp: 0x6C701E94

- -- This account not approved for unencrypted sensitive information --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEcBAEBAgAGBQJObqYcAAoJECNCGV1OLcyp7BMH/0XqY3bLX6/CWY/apaczQ1aL
jaubeSwDNn1Mqy/Tz5JGy7926en8+qvQhraKXlEWOX7GbMtfefg3LKKTGCmQzRYN
GZawhdS7T2PW/By8aV5hCqDjNWP4wmHm//b7A0yvkZDvWSygqVJtRvXtqNqq7iSi
Vp/BDMOUdLyuXEtz2vsE9C80bPU6kNXWPAH/BTovfo7LCBaMlpdw5lm3jggxnBru
ZdVBVxoOLD2Iqh7KySkI2tv3kH52xHSq0yGvjxrw4OXO+Qh0NtutvsyE5usvRepB
/+fmGPR2vlwz+0Wcc1Doq8Fcq/LcNp62hwWA+fNDKDDsRJpRdnid8eHLvTUIjoA=
=ZlYY
-----END PGP SIGNATURE-----

-- 
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.

<<attachment: tvaughan.vcf>>

Reply via email to