puppetlabs/puppetlabs-firewall — pull request #101 by mrwacky42 (2012-11-27 19:50:46+00:00)
Title: 14463 Convert Fixnum into strings.

Avert errors like this:
Parameter dport failed: Munging failed for value 1194 in class dport: can’t convert Fixnum into String

As it happens Socket.getservbyname only wants strings.

Also, the string_to_port method now tells Socket which protocol to use (vs the previous default of only asking about TCP). I cannot think of any services that use different ports for TCP vs UDP, but here is a fix anyway.