Previously if you wanted to define a custom service that only allows protocols it would error when adding protocols to the service. This was caused by the Puppet code omitting the ports array and the provider assuming that the ports array was specified.
I simply added a check to see if ports array was :unset and if it's :unset just skip finding protocols from that array.
Pull Request (PR) description
Previously if you wanted to define a custom service that only allows protocols it would error when adding protocols to the service. This was caused by the Puppet code omitting the
ports
array and the provider assuming that theports
array was specified.I simply added a check to see if
ports
array was:unset
and if it's:unset
just skip finding protocols from that array.This Pull Request (PR) fixes the following issues
Fixes #306