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:
parent
545f0a591f
commit
eaff7e40b5
1 changed files with 1 additions and 1 deletions
|
@ -4,6 +4,6 @@ end
|
|||
|
||||
Facter.add("mysql_server_id") do
|
||||
setcode do
|
||||
get_mysql_id
|
||||
get_mysql_id rescue nil
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue