From c0fd359aa62bcacbdf3a7200b6fc29a30dd8d1ff Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Tue, 13 Aug 2024 11:50:47 +0200 Subject: [PATCH] fix spelling in warn message previously this was: ``` Warning: Facter: Container runtime, 'docker', is unsupported, setting to, 'container_other' ``` But I think that is wrong? And it should be: ``` Warning: Facter: Container runtime, 'docker', is unsupported, setting to 'container_other' ``` --- lib/facter/resolvers/containers.rb | 2 +- spec/facter/resolvers/containers_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/facter/resolvers/containers.rb b/lib/facter/resolvers/containers.rb index 3992f48ec4..912a433fb3 100644 --- a/lib/facter/resolvers/containers.rb +++ b/lib/facter/resolvers/containers.rb @@ -54,7 +54,7 @@ def read_environ(fact_name) info = { 'id' => Facter::Util::FileHelper.safe_read('/etc/machine-id', nil).strip } else vm = 'container_other' - log.warn("Container runtime, '#{container}', is unsupported, setting to, '#{vm}'") + log.warn("Container runtime, '#{container}', is unsupported, setting to '#{vm}'") end @fact_list[:vm] = vm @fact_list[:hypervisor] = { vm.to_sym => info } if vm diff --git a/spec/facter/resolvers/containers_spec.rb b/spec/facter/resolvers/containers_spec.rb index 120c777d01..f74d94f40a 100644 --- a/spec/facter/resolvers/containers_spec.rb +++ b/spec/facter/resolvers/containers_spec.rb @@ -98,7 +98,7 @@ let(:logger) { Facter::Log.class_variable_get(:@@logger) } it 'return container_other for vm' do - expect(logger).to receive(:warn).with(/Container runtime, 'UNKNOWN', is unsupported, setting to, 'container_other'/) + expect(logger).to receive(:warn).with(/Container runtime, 'UNKNOWN', is unsupported, setting to 'container_other'/) expect(containers_resolver.resolve(:vm)).to eq('container_other') end end