Fix #5754 Fix cloud-init phone_home function