Bug #2781

Case statements with colons break Ruby 1.9.x compatibility

Added by Al Hoang 9 months ago. Updated 3 months ago.

Status:Closed Start:11/04/2009
Priority:Low Due date:
Assigned to:James Turnbull % Done:

0%

Category:unknown
Target version:0.25.2
Affected version:0.25.1 Branch:http://github.com/MarkusQ/puppet/tree/ticket/master/2781
Keywords:ruby 1.9
Votes: 0

Description

In order to get Puppet to properly work on Ruby 1.9.x case statements cannot use a colon after each particular case. There are some places in lib/puppet/rails.rb and lib/puppet/type/file.rb that use this syntax which breaks under Ruby 1.9.x

Attached is a patch to fix these case statements and also an attempted run of puppetd —trace —verbose —debug to show Puppet failing to startup without this patch

Note there are is some more changes in order to get the puppet client daemon to properly run on Ruby 1.9.x after these case statements

puppet-ruby19-case.patch (2.8 KB) Al Hoang, 11/04/2009 05:05 am

stacktrace.txt (2.8 KB) Al Hoang, 11/04/2009 05:05 am


Related issues

related to Puppet - Bug #2191: Ruby 1.9 portability Accepted 04/23/2009
related to Puppet - Bug #2782: Changes in Ruby 1.9.x const_set and const_get prevent pup... Code Insufficient 11/04/2009

History

Updated by Peter Meier 9 months ago

can you send the patches to puppet-dev ? –> http://reductivelabs.com/trac/puppet/wiki/Development/DevelopmentLifecycle#submitting-patches thanks!

Updated by James Turnbull 9 months ago

  • Status changed from Unreviewed to Investigating
  • Assigned to set to James Turnbull
  • Target version set to 0.25.2

Updated by Markus Roberts 9 months ago

  • Status changed from Investigating to Accepted

The issue description is sound and the patch looks acceptable (with the one minor aesthetic issue I noted on the list being the trailing semicolons).

Updated by Markus Roberts 9 months ago

  • Status changed from Accepted to Ready for Checkin
  • Branch set to http://github.com/MarkusQ/puppet/tree/ticket/master/2781

I’ve put Al’s patch up with trailing “;"s removed at http://github.com/MarkusQ/puppet/tree/ticket/master/2781

Updated by James Turnbull 9 months ago

  • Status changed from Ready for Checkin to Closed

Pushed in commit:“b1c57e9c15b1b7f079dc99dfc79e57fe3e5682e0” in branch 0.25.x

Also available in: Atom PDF