%q quotes automatically

Signed-off-by: Nicolas Corrarello <nicolas@corrarello.com>
This commit is contained in:
Nicolas Corrarello 2017-11-29 16:19:31 +00:00
parent 62fe10204a
commit 239a9a9985
No known key found for this signature in database
GPG key ID: 6FD0D0E272A30401

View file

@ -34,7 +34,7 @@ func (b *backend) pathTokenRead(
return nil, fmt.Errorf("error retrieving role: %v", err) return nil, fmt.Errorf("error retrieving role: %v", err)
} }
if role == nil { if role == nil {
return logical.ErrorResponse(fmt.Sprintf("Role '%q' not found", name)), nil return logical.ErrorResponse(fmt.Sprintf("Role %q not found", name)), nil
} }
// Determine if we have a lease configuration // Determine if we have a lease configuration