]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
Update to also be for destination
authorTomas Doran <bobtfish@bobtfish.net>
Thu, 11 Apr 2013 22:19:42 +0000 (23:19 +0100)
committerTomas Doran <bobtfish@bobtfish.net>
Thu, 11 Apr 2013 22:19:42 +0000 (23:19 +0100)
lib/puppet/type/firewall.rb

index e23468566f50e13afba1873c6bad99f7574e766d..090a9537bc28ca09154838778486b981fce26232 100644 (file)
@@ -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