Bug #312

puppetrun does not rescue ldap-LoadError correctly

Added by Redmine Admin over 5 years ago. Updated over 5 years ago.

Status:Closed Start date:
Priority:Normal Due date:
Assignee:Luke Kanies % Done:

0%

Category:-
Target version:-
Affected Puppet version:0.25.4 Branch:
Keywords:
Votes: 0

Description

hio, despite the rescue-statement, the LoadError won’t be catched – simple to fix :)

thorsten@pap:~/src/puppet-0.19.3$ bin/puppetrun 
bin/puppetrun:123:in @require': no such file to load -- ldap (LoadError)
        from bin/puppetrun:123


--- bin/puppetrun.old   2006-10-10 20:55:32.000000000 +0200
+++ bin/puppetrun       2006-10-10 20:54:49.000000000 +0200
@@ -121,7 +121,7 @@
 end
 begin
     require 'ldap'
-rescue 
+rescue [[LoadError]]
     $stderr.puts "Failed to load ruby LDAP library. LDAP functionality will not be available"
 end
 require 'puppet'

History

Updated by Luke Kanies over 5 years ago

  • Status changed from 1 to Closed
  • 7 set to fixed

Fixed in r1759.

Also available in: Atom PDF