From: Tomas Doran Date: Thu, 11 Apr 2013 22:19:42 +0000 (+0100) Subject: Update to also be for destination X-Git-Tag: 0.3.0~14^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=826b3761ce0b7e9c8012dc84429232b915a205c6;p=puppet-modules%2Fpuppetlabs-firewall.git Update to also be for destination --- diff --git a/lib/puppet/type/firewall.rb b/lib/puppet/type/firewall.rb index e234685..090a953 100644 --- a/lib/puppet/type/firewall.rb +++ b/lib/puppet/type/firewall.rb @@ -115,7 +115,11 @@ Puppet::Type.newtype(:firewall) do EOS munge do |value| - @resource.host_to_ip(value) + begin + @resource.host_to_ip(value) + rescue Exception => e + self.fail("host_to_ip failed for #{value}, exception #{e}") + end end end