Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure catalog compiles when endpoint is missing
Usually we parse the src port for incoming packets / the dst port for outgoing packets from the $endpoint param The param is optional, in case you want to create a passive endpoint for clients with dynamic ip addresses In those cases we still need to create firewall rules, but without src port for incoming packets / the dst port To make this all a bit easier, we also added a new parameter, $endpoint_port, which takes precedence over parsing $endpoint. Previously the catalog compilation failed with: ``` Evaluation Error: Left match operand must result in a String value. Got an Undef Value. ``` Because of: `if $endpoint =~ /:(\d+)$/ {` This test verifes that the current code is broken.
- Loading branch information