vsphere check for templates fix