diff options
Diffstat (limited to 'lib/facter/strongswan_ips.rb')
-rw-r--r-- | lib/facter/strongswan_ips.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |