From 01797765d00e3be398c674ad80b6637ffa527c3b Mon Sep 17 00:00:00 2001 From: Joe Rafaniello Date: Fri, 8 Nov 2024 13:30:23 -0500 Subject: [PATCH] Fix warnings raised by URI 1.0.1 Related to: https://www.github.com/ruby/uri/issues/125 https://github.com/ManageIQ/manageiq/pull/23260 --- .../manageiq/providers/vmware/infra_manager/event_parser.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/manageiq/providers/vmware/infra_manager/event_parser.rb b/app/models/manageiq/providers/vmware/infra_manager/event_parser.rb index 60ca0f1a1..dcc0f4d1b 100644 --- a/app/models/manageiq/providers/vmware/infra_manager/event_parser.rb +++ b/app/models/manageiq/providers/vmware/infra_manager/event_parser.rb @@ -86,7 +86,7 @@ def self.event_to_hash(event, ems_id = nil) vm_ems_ref = vm_data['vm'] result[:vm_ems_ref] = vm_ems_ref.to_s unless vm_ems_ref.nil? vm_name = vm_data['name'] - result[:vm_name] = URI::DEFAULT_PARSER.unescape(vm_name) unless vm_name.nil? + result[:vm_name] = URI::RFC2396_PARSER.unescape(vm_name) unless vm_name.nil? vm_location = vm_data['path'] result[:vm_location] = vm_location unless vm_location.nil? vm_uid_ems = vm_data['uuid'] @@ -101,7 +101,7 @@ def self.event_to_hash(event, ems_id = nil) vm_ems_ref = vm_data['vm'] result[:dest_vm_ems_ref] = vm_ems_ref.to_s unless vm_ems_ref.nil? vm_name = vm_data['name'] - result[:dest_vm_name] = URI::DEFAULT_PARSER.unescape(vm_name) unless vm_name.nil? + result[:dest_vm_name] = URI::RFC2396_PARSER.unescape(vm_name) unless vm_name.nil? vm_location = vm_data['path'] result[:dest_vm_location] = vm_location unless vm_location.nil? end