sporkmonger / uuidtools

A simple universally unique ID generation library.
http://uuidtools.rubyforge.org/
Apache License 2.0
424 stars 63 forks source link

Gracefully fall back to other strategies when MAC address cannot be determined #55

Open nwallace opened 8 months ago

nwallace commented 8 months ago

Often in containerized *nix environments, neither ip nor ifconfig will be present, which means that in these environments, the MAC address cannot be determined. In such a scenario, certain strategies would fail to generate a UUID.

This change makes the code fall back to other strategies without raising errors when the MAC address cannot be determined.

Fixes #53