update template_upgrade remove leading space abd rm machine-id