Support different rexml location for older vagrant (#1493)

Attempt fallback to loading rexml from rexml/rexml which is the path
used by older vagrant releases.

Fixes #1483
This commit is contained in:
Darragh Bailey 2022-05-12 21:45:44 +01:00 committed by GitHub
parent e4122f480a
commit 9cda25a384
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,12 @@
# frozen_string_literal: true
require 'log4r'
require 'rexml'
begin
require 'rexml'
rescue LoadError
require 'rexml/rexml'
end
module VagrantPlugins
module ProviderLibvirt