Don't explode if macaddress isn't set

Sometimes the macaddress fact fails, for example sometimes in a Docker
container. We shouldn't clutter up reports with spurious warnings in
that case.
This commit is contained in:
Ben Ford 2015-06-25 10:23:58 -07:00
parent 545f0a591f
commit eaff7e40b5

View file

@ -4,6 +4,6 @@ end
Facter.add("mysql_server_id") do
setcode do
get_mysql_id
get_mysql_id rescue nil
end
end