xapi-project/xen-api — pull request #2047 by rosslagerwall (2014-12-05 08:22:53+00:00)
Title: CP-9795: Improve comparison of hostname against localhost

On RHEL-based systems prior to 7, the output of hostname with no
hostname setup is "localhost.localdomain". On RHEL 7-based systems and
Debian-based systems, the output of hostname is "localhost". Compare
the name label against either of these values for resilience.

Signed-off-by: Ross Lagerwall