Issue #4946 has been updated by Andrew Parker.

As the 2.7.x line is winding down, I am removing the target at 2.7.x from 
tickets in the system. The 2.7 line should only receive fixes for major 
problems (crashes, for instance) or security problems.
----------------------------------------
Bug #4946: Dependency abbreviations incorrectly parsed
https://projects.puppetlabs.com/issues/4946#change-80467

Author: Hunter Haugen
Status: In Topic Branch Pending Review
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 
https://github.com/jeffweiss/puppet/commit/f2bcc3ac7ecabbb2dcc899f64c1c6a26780fb74c


The dependencies before/require in 2.6 can be abbreviated with -> or <-. There 
appears to be a bug with more than one element in a resource block.

These both fail irrespective of whitespace:
<pre>class pkgs {
  package { ["mysql", "httpd"]:
    ensure => present,
  } ->
  service { "httpd":
    ensure => running,
  }
}
include pkgs</pre>
<pre>class pkgs {
  package {
    "mysql": ensure => present;
    "httpd": ensure => present,
  } ->
  service { "httpd":
    ensure => running,
  }
}
include pkgs</pre>
And they fail with this error:
<pre>Could not find resource 'Package[mysql]Package[httpd]' for relationship on 
'Service[httpd]' on node localhost.localdomain</pre>

This succeeds, as expected:
<pre>class pkgs {
  package { ["mysql", "httpd"]:
    ensure => present,
    before => Service["httpd"],
  }
  service { "httpd":
    ensure => running,
  }
}
include pkgs</pre>
Having a single package in the package resource block succeeds with the "->" 
syntax.

CentOS 5.5<br />
Puppet 2.6.1


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