diff options
author | o <o@immerda.ch> | 2013-08-10 19:10:46 +0200 |
---|---|---|
committer | o <o@immerda.ch> | 2013-08-10 19:10:46 +0200 |
commit | 12b26d899b700be9735903fd457d54f75b0638aa (patch) | |
tree | 78af8e062ee625d4f4512945c4556bccbd77fae0 | |
parent | 3a44434a6846baf551cba5ed890d7c9c482dc9fb (diff) |
fix syntax
-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 |