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
This commit is contained in:
parent
b168268b35
commit
60c340f68d
@ -1,4 +1,7 @@
|
|||||||
|
begin
|
||||||
require 'rexml/document'
|
require 'rexml/document'
|
||||||
|
rescue LoadError
|
||||||
|
end
|
||||||
|
|
||||||
class Puppet::Provider::Pacemaker_common < Puppet::Provider
|
class Puppet::Provider::Pacemaker_common < Puppet::Provider
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user