%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
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ func (b *backend) pathTokenRead(
return nil, fmt.Errorf("error retrieving role: %v", err)
}
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