check that hostname is not empty

heal reboot loop