Skip to content
Snippets Groups Projects
Commit c3bd97b2 authored by Thomas Bellman's avatar Thomas Bellman
Browse files

Internal robustness fixes in resolve_ipnets().

Avoid internal errors being hidden, by:

 - Use the #fetch() method instead of the [] operator on a couple of
   hashes, so we get an exception instead of nil when accessing keys
   that don't exist.
 - Move the code handling the return value from Socket.getaddrinfo()
   outside of begin...rescue.

This was originally commit d91846500abc in nsc-puppet-utils.
parent a39378de
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment