Fix return of host configurations.

This commit is contained in:
Mariano Cano 2019-10-11 19:26:09 -07:00
parent 7a8ec397ac
commit 15390fc636

View file

@ -339,7 +339,7 @@ func (h *caHandler) SSHConfig(w http.ResponseWriter, r *http.Request) {
case provisioner.SSHUserCert:
config.UserTemplates = ts
case provisioner.SSHHostCert:
config.UserTemplates = ts
config.HostTemplates = ts
default:
WriteError(w, InternalServerError(errors.New("it should hot get here")))
return