diff options
author | o <o@immerda.ch> | 2013-08-10 19:45:07 +0200 |
---|---|---|
committer | o <o@immerda.ch> | 2013-08-10 19:45:07 +0200 |
commit | 17623a4e889ff61bdf9ac87982ccb09a0bb14f72 (patch) | |
tree | 20a100dcf323e713c894eb9e2da1fa065e8e9b52 | |
parent | 12b26d899b700be9735903fd457d54f75b0638aa (diff) |
another fix to the factor lib
-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 b1ab7fd..8875309 100644 --- a/lib/facter/strongswan_ips.rb +++ b/lib/facter/strongswan_ips.rb @@ -3,7 +3,7 @@ Facter.add("strongswan_ips") do bin = ['/usr/sbin/ipsec', '/usr/sbin/strongswan'].find do |f| File.exists?(f) end - return unless bin + break unless bin output = Facter::Util::Resolution.exec( "#{bin} statusall | grep -E '^ [0-9a-f]' | sort | uniq") output = output.to_s.split("\n").collect(&:strip) |