From a675fc71b7fe5df3d5bd7178aa513957be7b1bd1 Mon Sep 17 00:00:00 2001 From: Patrick Riehecky Date: Mon, 28 Aug 2023 09:48:47 -0500 Subject: [PATCH] Try to fixup firewalld fact test --- spec/unit/facter/firewalld_version_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/unit/facter/firewalld_version_spec.rb b/spec/unit/facter/firewalld_version_spec.rb index bb943e13..4deea93a 100644 --- a/spec/unit/facter/firewalld_version_spec.rb +++ b/spec/unit/facter/firewalld_version_spec.rb @@ -9,7 +9,7 @@ Process.stubs(:uid).returns(0) Facter::Core::Execution.stubs(:exec).with('uname -s').returns('Linux') Facter::Util::Resolution.stubs(:which).with('firewall-offline-cmd').returns('/usr/bin/firewall-offline-cmd') - Facter::Core::Execution.stubs(:execute).with('/usr/bin/firewall-offline-cmd --version', on_fail: :failed).returns(firewalld_version) + Facter::Core::Execution.stubs(:execute).with('/usr/bin/firewall-offline-cmd --version', on_fail: :failed).returns(firewalld_version.dup) end let(:python_args) do