Domain checking code doubling up domain in hostnames
In 0.1-6, foreman began checking to ensure that hostnames which have the domain column set to a non-null value end in the matching domain value. However, the code that does the check is doing case-sensitive matching, which can cause hosts to have doubled up hostnames. For example, "host.domain.com" might become "host.domain.com.DOMAIN.COM", which of course means that future check-ins, reports, etc don't get associated with that host. Instead, an empty new record for "host.domain.com" appears to get created (from the reports, perhaps?) which needs to be deleted after fixing the original record.
Trivial patch that fixes the issue attached.