diff --git a/builtin/credential/cert/backend_test.go b/builtin/credential/cert/backend_test.go index 7a077a615b..14875e5330 100644 --- a/builtin/credential/cert/backend_test.go +++ b/builtin/credential/cert/backend_test.go @@ -1225,8 +1225,8 @@ func TestBackend_validCIDR(t *testing.T) { } readCertReq := &logical.Request{ - Operation: logical.ReadOperation, - Path: "certs/" + name, + Operation: logical.ReadOperation, + Path: "certs/" + name, Storage: storage, Connection: &logical.Connection{ConnState: &connState}, } @@ -1236,7 +1236,7 @@ func TestBackend_validCIDR(t *testing.T) { if cidrsResult[0].String() != boundCIDRs[0] || cidrsResult[1].String() != boundCIDRs[1] { - t.Fatalf("bound_cidrs couldn't be set correctly, EXPECTED: %v, ACTUAL: %v", boundCIDRs, cidrsResult) + t.Fatalf("bound_cidrs couldn't be set correctly, EXPECTED: %v, ACTUAL: %v", boundCIDRs, cidrsResult) } loginReq := &logical.Request{ diff --git a/builtin/credential/cert/path_certs.go b/builtin/credential/cert/path_certs.go index 36bf97181d..53f0254b33 100644 --- a/builtin/credential/cert/path_certs.go +++ b/builtin/credential/cert/path_certs.go @@ -198,7 +198,7 @@ func (b *backend) pathCertRead(ctx context.Context, req *logical.Request, d *fra "allowed_uri_sans": cert.AllowedURISANs, "allowed_organizational_units": cert.AllowedOrganizationalUnits, "required_extensions": cert.RequiredExtensions, - "bound_cidrs": cert.BoundCIDRs, + "bound_cidrs": cert.BoundCIDRs, }, }, nil } diff --git a/physical/s3/s3.go b/physical/s3/s3.go index 8c1efdf19f..0fd940624e 100644 --- a/physical/s3/s3.go +++ b/physical/s3/s3.go @@ -140,7 +140,7 @@ func NewS3Backend(conf map[string]string, logger log.Logger) (physical.Backend, if !ok { kmsKeyId = "" } - + s := &S3Backend{ client: s3conn, bucket: bucket, @@ -168,9 +168,9 @@ func (s *S3Backend) Put(ctx context.Context, entry *physical.Entry) error { putObjectInput.ServerSideEncryption = aws.String("aws:kms") putObjectInput.SSEKMSKeyId = aws.String(s.kmsKeyId) } - + _, err := s.client.PutObject(putObjectInput) - + if err != nil { return err }