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 commit60c340f68d
) (cherry picked from commitfd14c9b20b
) (cherry picked from commit543ef1c192
) (cherry picked from commitd1fbe78c1b
)
This commit is contained in:
parent
ba3be4e2f2
commit
8840ae2f5a
|
@ -1,4 +1,7 @@
|
|||
require 'rexml/document'
|
||||
begin
|
||||
require 'rexml/document'
|
||||
rescue LoadError
|
||||
end
|
||||
|
||||
class Puppet::Provider::Pacemaker_common < Puppet::Provider
|
||||
|
||||
|
|
Loading…
Reference in New Issue