Use a relative path load on LoadError
Some versions of Puppet suffer from a regression which prevents them from successfully loading auxilliary code in the module's lib directory. See https://tickets.puppetlabs.com/browse/SERVER-973
This commit is contained in:
parent
0cdd94cf86
commit
a2c729c881
@ -1,4 +1,10 @@
|
||||
require 'puppet_bind/provider/nsupdate'
|
||||
begin
|
||||
require 'puppet_bind/provider/nsupdate'
|
||||
rescue LoadError => e
|
||||
# work around for puppet bug SERVER-973
|
||||
Puppet.info('Puppet did not autoload from the lib directory... falling back to relative path load.')
|
||||
require File.join(File.expand_path(File.join(__FILE__, '../../../..')), 'puppet_bind/provider/nsupdate')
|
||||
end
|
||||
|
||||
Puppet::Type.type(:dns_rr).provide(:nsupdate) do
|
||||
|
||||
|
||||
@ -1,4 +1,10 @@
|
||||
require 'puppet_bind/provider/nsupdate'
|
||||
begin
|
||||
require 'puppet_bind/provider/nsupdate'
|
||||
rescue LoadError => e
|
||||
# work around for puppet bug SERVER-973
|
||||
Puppet.info('Puppet did not autoload from the lib directory... falling back to relative path load.')
|
||||
require File.join(File.expand_path(File.join(__FILE__, '../../../..')), 'puppet_bind/provider/nsupdate')
|
||||
end
|
||||
|
||||
Puppet::Type.type(:resource_record).provide(:nsupdate) do
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user