Sfoglia il codice sorgente

Fix return of host configurations.

Mariano Cano 7 anni fa
parent
commit
f0b346a528
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      api/ssh.go

+ 1 - 1
api/ssh.go

@@ -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