Support different rexml location for older vagrant (#1526)

Attempt fallback to loading rexml from rexml/rexml which is the path
used by older vagrant releases.
This commit is contained in:
Nick Brown
2022-07-12 18:41:54 +01:00
committed by GitHub
parent 41d153b91f
commit 2dc704e1f9

View File

@@ -1,7 +1,12 @@
# frozen_string_literal: true
require 'log4r'
require 'rexml'
begin
require 'rexml'
rescue LoadError
require 'rexml/rexml'
end
require 'vagrant-libvirt/util/resolvers'