Skip to content

Commit

Permalink
Fix warnings raised by URI 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jrafanie committed Nov 8, 2024
1 parent 3ba04ea commit 0179776
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand All @@ -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
Expand Down

0 comments on commit 0179776

Please sign in to comment.