Issue #7646 has been updated by Cody Herriges.

I have a feeling this is actually linked to a bigger problem.

    file { '/tmp/both':
      content => "test",
    }
    file { 'two':
      path    => '/tmp/both',
      content => 'test2',
    }

The above runs with out error.

    user { 'bob':
      ensure => present,
    }

    user { 'isntbob':
      ensure => absent,
      name   => 'bob',
    }

This also works without error.

    user { 'isbob':
      ensure => present,
      name   => 'bob',
    }
    user { 'isntbob':
      ensure => absent,
      name   => 'bob',
    }

This last one fails properly.
----------------------------------------
Bug #7646: trailing slashes in file paths are not removed before comparing for 
unique resource title
https://projects.puppetlabs.com/issues/7646

Author: Peter Meier
Status: Accepted
Priority: Normal
Assignee: 
Category: file
Target version: 2.6.x
Affected Puppet version: 2.6.8
Keywords: 
Branch: 


I thought we have fixed that in #2675 - apparently not. so here we go:

Yippie!

<pre>
$ cat foo.pp 
file{
  '/tmp/foo':
    ensure => directory,
    mode => 0777;
  '/tmp/foo/':
    ensure => directory,
    mode => 0700;
}
$ puppet foo.pp
notice: /Stage[main]//File[/tmp/foo/]/ensure: created
notice: /Stage[main]//File[/tmp/foo]/mode: mode changed '700' to '777'
$ puppet foo.pp
notice: /Stage[main]//File[/tmp/foo/]/mode: mode changed '777' to '700'
$ puppet foo.pp
notice: /Stage[main]//File[/tmp/foo]/mode: mode changed '700' to '777'
notice: /Stage[main]//File[/tmp/foo/]/mode: mode changed '777' to '700'
$ puppet foo.pp
notice: /Stage[main]//File[/tmp/foo]/mode: mode changed '700' to '777'
notice: /Stage[main]//File[/tmp/foo/]/mode: mode changed '777' to '700'
$ puppet --version
2.6.4
</pre>

I can confirm that it still happens on 2.6.8


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