mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 18:17:55 +00:00
add gofmt checks to Vault and format existing code (#2745)
This commit is contained in:
@@ -5,9 +5,9 @@ import (
|
||||
"net/url"
|
||||
"time"
|
||||
|
||||
"github.com/fatih/structs"
|
||||
"github.com/hashicorp/vault/logical"
|
||||
"github.com/hashicorp/vault/logical/framework"
|
||||
"github.com/fatih/structs"
|
||||
)
|
||||
|
||||
func pathConfig(b *backend) *framework.Path {
|
||||
@@ -37,7 +37,7 @@ API-compatible authentication server.`,
|
||||
|
||||
Callbacks: map[logical.Operation]framework.OperationFunc{
|
||||
logical.UpdateOperation: b.pathConfigWrite,
|
||||
logical.ReadOperation: b.pathConfigRead,
|
||||
logical.ReadOperation: b.pathConfigRead,
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -77,10 +77,10 @@ func (b *backend) pathConfigWrite(
|
||||
}
|
||||
|
||||
entry, err := logical.StorageEntryJSON("config", config{
|
||||
Organization: organization,
|
||||
BaseURL: baseURL,
|
||||
TTL: ttl,
|
||||
MaxTTL: maxTTL,
|
||||
Organization: organization,
|
||||
BaseURL: baseURL,
|
||||
TTL: ttl,
|
||||
MaxTTL: maxTTL,
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user