From 073ca59c7951b9c9eed528e48b9b290f579e1b63 Mon Sep 17 00:00:00 2001 From: Steve Traylen <steve.traylen@cern.ch> Date: Thu, 7 Oct 2021 11:11:59 +0200 Subject: [PATCH] calling URI.open via Kernel#open is deprecated With ruby 2.7.3 (puppet 7) ``` facter -p landb_location /opt/puppetlabs/puppet/lib/ruby/gems/2.7.0/gems/landb-0.1.2/lib/landb/landb_client.rb:96: warning: calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open 0000 0-0000 ``` --- lib/landb/landb_client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/landb/landb_client.rb b/lib/landb/landb_client.rb index a429f8c..b319f94 100644 --- a/lib/landb/landb_client.rb +++ b/lib/landb/landb_client.rb @@ -93,7 +93,7 @@ class LandbClient def get_all_operations_and_arguments hash = {} - nok = Nokogiri::XML(open(@@config["wsdl"])) + nok = Nokogiri::XML(URI.open(@@config["wsdl"])) nok.xpath('wsdl:definitions/wsdl:binding/wsdl:operation').each do |action| action.children.each do |child_node| next unless child_node.element? && child_node.name == "input" -- GitLab