forked from TrueCloudLab/certificates
Fix lint error.
This commit is contained in:
parent
f47516a15d
commit
91ccc3802c
1 changed files with 2 additions and 6 deletions
|
@ -195,15 +195,11 @@ func (a *Authority) init() error {
|
||||||
if a.config.SSH != nil {
|
if a.config.SSH != nil {
|
||||||
if a.sshCAHostCertSignKey != nil {
|
if a.sshCAHostCertSignKey != nil {
|
||||||
vars.SSH.HostKey = a.sshCAHostCertSignKey.PublicKey()
|
vars.SSH.HostKey = a.sshCAHostCertSignKey.PublicKey()
|
||||||
for _, k := range a.sshCAHostFederatedCerts[1:] {
|
vars.SSH.HostFederatedKeys = append(vars.SSH.HostFederatedKeys, a.sshCAHostFederatedCerts[1:]...)
|
||||||
vars.SSH.HostFederatedKeys = append(vars.SSH.HostFederatedKeys, k)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if a.sshCAUserCertSignKey != nil {
|
if a.sshCAUserCertSignKey != nil {
|
||||||
vars.SSH.UserKey = a.sshCAUserCertSignKey.PublicKey()
|
vars.SSH.UserKey = a.sshCAUserCertSignKey.PublicKey()
|
||||||
for _, k := range a.sshCAUserFederatedCerts[1:] {
|
vars.SSH.UserFederatedKeys = append(vars.SSH.UserFederatedKeys, a.sshCAUserFederatedCerts[1:]...)
|
||||||
vars.SSH.UserFederatedKeys = append(vars.SSH.UserFederatedKeys, k)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
t.Data["Step"] = vars
|
t.Data["Step"] = vars
|
||||||
|
|
Loading…
Reference in a new issue