From 81059a2567be0cd811ca10e3545282c9aa53276a Mon Sep 17 00:00:00 2001 From: Lukas Prettenthaler Date: Fri, 26 Apr 2019 17:01:54 +0200 Subject: LDAP: ignore already existing public keys after ldap sync (#6766) * fix type in public key exist error, only log trace for ldap public key import if existing Signed-off-by: Lukas Prettenthaler * cleanup switch statement Signed-off-by: Lukas Prettenthaler * replace switch with if, fix log formatting Signed-off-by: Lukas Prettenthaler * fix formatting Signed-off-by: Lukas Prettenthaler --- models/error.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models/error.go') diff --git a/models/error.go b/models/error.go index febe3f3e04..c3495b28d7 100644 --- a/models/error.go +++ b/models/error.go @@ -318,7 +318,7 @@ func IsErrKeyAlreadyExist(err error) bool { } func (err ErrKeyAlreadyExist) Error() string { - return fmt.Sprintf("public key already exists [owner_id: %d, finter_print: %s, content: %s]", + return fmt.Sprintf("public key already exists [owner_id: %d, finger_print: %s, content: %s]", err.OwnerID, err.Fingerprint, err.Content) } -- cgit v1.2.3