From 13a08b64901adad82f7821c40b8c8a02e9671f51 Mon Sep 17 00:00:00 2001 From: Axel Gluth Date: Tue, 14 Nov 2017 21:09:01 +0100 Subject: [PATCH] Fix issue #47 Return status for systemd services in fact "systemd_internal_services" as string --- lib/facter/systemd.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/facter/systemd.rb b/lib/facter/systemd.rb index f7b24be9..9a2086f9 100644 --- a/lib/facter/systemd.rb +++ b/lib/facter/systemd.rb @@ -52,7 +52,7 @@ ) lines = command_output.lines.lazy.map { |line| line.split(/\s+/) } lines.each_with_object({}) do |(service, status, *), result| - result[service] = status.to_sym + result[service] = status end end end