bug #2601: Use ssh_public_key when updating a template
(cherry picked from commit d135098b31d4504c39e356a26d7ee6b58875c308)