summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoro <o@immerda.ch>2013-08-10 19:45:07 +0200
committero <o@immerda.ch>2013-08-10 19:45:07 +0200
commit17623a4e889ff61bdf9ac87982ccb09a0bb14f72 (patch)
tree20a100dcf323e713c894eb9e2da1fa065e8e9b52
parent12b26d899b700be9735903fd457d54f75b0638aa (diff)
another fix to the factor lib
-rw-r--r--lib/facter/strongswan_ips.rb2
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)