From 12b26d899b700be9735903fd457d54f75b0638aa Mon Sep 17 00:00:00 2001 From: o Date: Sat, 10 Aug 2013 19:10:46 +0200 Subject: fix syntax --- lib/facter/strongswan_ips.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/facter/strongswan_ips.rb b/lib/facter/strongswan_ips.rb index 3cb2f69..b1ab7fd 100644 --- a/lib/facter/strongswan_ips.rb +++ b/lib/facter/strongswan_ips.rb @@ -6,7 +6,7 @@ Facter.add("strongswan_ips") do return unless bin output = Facter::Util::Resolution.exec( "#{bin} statusall | grep -E '^ [0-9a-f]' | sort | uniq") - .to_s.split("\n").collect(&:strip) + output = output.to_s.split("\n").collect(&:strip) output.join(',') unless output.empty? end end -- cgit v1.2.3