Workaround issue with >= 16.5 when requiring addressable/uri
A change made in 16.5 causes an issue when trying to require `addressable/uri`. This has been filed upstream with this issue [1]. As a workaround, it seems using `autoload` fixes the problem. [1] https://github.com/chef/chef/issues/10452 Change-Id: Iae337a8ff1784c46e8171fc54eb00ef28f11561a Depends-On: https://review.opendev.org/753102 Signed-off-by: Lance Albertson <lance@osuosl.org>
This commit is contained in:
parent
3b02de3c8b
commit
4882fb05bb
@ -20,7 +20,9 @@
|
||||
#
|
||||
|
||||
require 'uri'
|
||||
require 'addressable/uri'
|
||||
# TODO(ramereth): Workaround for this issue https://github.com/chef/chef/issues/10452
|
||||
# require 'addressable/uri'
|
||||
autoload :Addressable, 'addressable/uri'
|
||||
|
||||
# URI methods
|
||||
module ::Openstack
|
||||
|
Loading…
Reference in New Issue
Block a user