For some reason we save host without running valdiations when we import attributes from facts. Therefore we have to take care of mac normalization by ourselves. We have to normalize it just after setting new value because save can occure anytime.
Related issues
Bug #7908: mac address toggle between lower case and upper case in audit logs
Fixes #7908 - normalize mac before host get saved
For some reason we save host without running valdiations when we import
attributes from facts. Therefore we have to take care of mac
normalization by ourselves. We have to normalize it just after setting
new value because save can occure anytime.