Issue #2534 has been updated by James Turnbull.

Status changed from Ready for Checkin to Closed

Pushed in commit:"73d04c6b15e1b626cd7dea1f963a5ca02a810137" in branch 0.25.x
----------------------------------------
Bug #2534: Parser should raise an error if you specify the same property twice
http://projects.reductivelabs.com/issues/2534

Author: R.I. Pienaar aka Volcane
Status: Closed
Priority: Normal
Assigned to: 
Category: usability
Target version: 0.25.1
Affected version: 0.24.8
Keywords: 
Branch: 


Given the, obviously wrong, manifest below:

 exec{"2":
   command => "/bin/date > /tmp/1"
 }
  
 exec{"3":
  command => "/bin/date > /tmp/1",
  require => Exec["1"],
  require => Exec["2"]
 }
  
  
 exec{"1":
  command => "/bin/date > /tmp/1"
 }

You'd hope there would be a error raised from the compiler, instead it throws 
away the 'require => Exec["1"]' bit completely, people make this mistake easily 
and then spend time trying to figure out what went wrong

  notice: //Exec[2]/returns: executed successfully
 notice: //Exec[3]/returns: executed successfully
 notice: //Exec[1]/returns: executed successfully



-- 
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://reductivelabs.com/redmine/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