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: I8cb5de8aed76f3530e4b4b475024e554c8451790
Depends-On: https://review.opendev.org/753415
Signed-off-by: Lance Albertson <lance@osuosl.org>
This commit is contained in:
Lance Albertson
2020-09-21 10:51:14 -07:00
parent f8590d5fec
commit c354f2a406

View File

@@ -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