From 252ddfda4a3e2db1c5329136f399ea003c3e9f25 Mon Sep 17 00:00:00 2001 From: Doninelli Davide Date: Tue, 8 Oct 2024 15:30:21 +0200 Subject: [PATCH] rspec ./spec/unit/puppet/provider/cs_clone_pcs_spec.rb:243 Puppet::Type::Cs_clone::ProviderPcs when changing clone id each instance calls cibadmin with the correct parameters --- lib/puppet/provider/cs_clone/pcs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/provider/cs_clone/pcs.rb b/lib/puppet/provider/cs_clone/pcs.rb index 814f5d21..8387a4e9 100644 --- a/lib/puppet/provider/cs_clone/pcs.rb +++ b/lib/puppet/provider/cs_clone/pcs.rb @@ -28,7 +28,7 @@ def change_clone_id(type, primitive, id, cib) return unless doc.root.attributes['id'] != id doc.root.attributes['id'] = id - cmd = [command(:cibadmin), '--replace', '--xpath', xpath, '--xml-text', doc.to_s.chop] + cmd = [command(:cibadmin), '--replace', '--xpath', xpath, '--xml-text', doc.to_s] self.class.run_command_in_cib(cmd, cib) end