forked from TrueCloudLab/certificates
Remove the template path if we load the defaults.
This commit is contained in:
parent
237baa5169
commit
a845b56283
1 changed files with 2 additions and 0 deletions
|
@ -115,9 +115,11 @@ HostKey /etc/ssh/{{.User.Key}}`,
|
||||||
func DefaultTemplates() *Templates {
|
func DefaultTemplates() *Templates {
|
||||||
sshTemplates := DefaultSSHTemplates
|
sshTemplates := DefaultSSHTemplates
|
||||||
for i, t := range sshTemplates.User {
|
for i, t := range sshTemplates.User {
|
||||||
|
sshTemplates.User[i].TemplatePath = ""
|
||||||
sshTemplates.User[i].Content = []byte(DefaultSSHTemplateData[t.Name])
|
sshTemplates.User[i].Content = []byte(DefaultSSHTemplateData[t.Name])
|
||||||
}
|
}
|
||||||
for i, t := range sshTemplates.Host {
|
for i, t := range sshTemplates.Host {
|
||||||
|
sshTemplates.Host[i].TemplatePath = ""
|
||||||
sshTemplates.Host[i].Content = []byte(DefaultSSHTemplateData[t.Name])
|
sshTemplates.Host[i].Content = []byte(DefaultSSHTemplateData[t.Name])
|
||||||
}
|
}
|
||||||
return &Templates{
|
return &Templates{
|
||||||
|
|
Loading…
Reference in a new issue