Issue #7681 has been updated by Jacob Helwig.

Bisecting claims that commit:df088c9ba16dce50c17a79920c1ac186db67b9e9 is to 
blame.  Even though the commit is back from `Wed Aug 25 11:29:23 2010`, it 
looks like the 2.7 series is the first release it's been in.

    % git tag --contains df088c9ba16dce50c17a79920c1ac186db67b9e9
    2.7.0rc1            
    2.7.0rc2
    2.7.0rc3
    Iteration-2010-11-03
    Iteration-2010-11-10
    Iteration-2010-11-17
    Iteration-2010-11-24
    Iteration-2010-12-15-master
    Iteration-2011-01-05-master
    Iteration-2011-01-19-master
    Iteration-2011-02-02-master
    Iteration-2011-03-16-master
    Iteration-2011-03-23-master
    Iteration-2011-03-30-master
    Iteration-2011-04-06-master
    Iteration-2011-04-13-master
    Iteration-2011-04-21-2.7.x
    Iteration-2011-04-21-master
    Iteration-2011-04-27-2.7.x
    Iteration-2011-04-27-master

----------------------------------------
Bug #7681: Regression, arrays and variables
https://projects.puppetlabs.com/issues/7681

Author: Stig Sandbeck Mathisen
Status: Accepted
Priority: Urgent
Assignee: 
Category: 
Target version: 2.7.0
Affected Puppet version: 2.7.0rc3
Keywords: regression, array, require
Branch: 


There seems to be a regression, or at least a change in how puppet handles 
arrays assigned to variables, in 2.7

Given the following manifest:

    $files = ["/tmp/one", "/tmp/two"]
    file { "/tmp/one":
      content => "one",
    }
    file { "/tmp/two":
      content => "two",
    }
    file { "/tmp/three":
      content => "three",
      require => File[$files],
    }
    

2.7.0 concatenates the strings in the array in the variable.

    $ puppet test_array.pp
    Could not find dependency File[/tmp/one/tmp/two] for File[/tmp/three] at 
/srv/nfs/ms/home/ssm/test_array.pp:15
    $ puppet --version
    2.7.0
    
2.6.8 and 0.25.4 handles the array just fine

    $ puppet test_array.pp
    notice: /Stage[main]//File[/tmp/two]/ensure: defined content as 
'{md5}b8a9f715dbb64fd5c56e7783c6820a61'
    notice: /Stage[main]//File[/tmp/one]/ensure: defined content as 
'{md5}f97c5d29941bfb1b2fdab0874906ab82'
    notice: /Stage[main]//File[/tmp/three]/ensure: defined content as 
'{md5}35d6d33467aae9a2e3dccb4b6b027878'
    notice: Finished catalog run in 0.62 seconds
    $ puppet --version
    2.6.8
    
    $ puppet test_array.pp
    notice: //File[/tmp/one]/content: defined content as 'unknown checksum'
    notice: //File[/tmp/two]/content: defined content as 'unknown checksum'
    notice: //File[/tmp/three]/content: defined content as 'unknown checksum'
    $ puppet --version
    0.25.4


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