Dont crash when rexml is not installed

We might be running unit tests and this Ruby library not
being available we will crash when puppet tries to autoload
this provider.

Change-Id: I199a498071cac7d0660b0ea573d38dc27c4c1358
(cherry picked from commit 60c340f68d)
(cherry picked from commit fd14c9b20b)
This commit is contained in:
Tobias Urdin
2024-02-02 08:49:35 +01:00
committed by Takashi Kajinami
parent 97f6f11753
commit 543ef1c192

View File

@@ -1,4 +1,7 @@
require 'rexml/document'
begin
require 'rexml/document'
rescue LoadError
end
class Puppet::Provider::Pacemaker_common < Puppet::Provider