We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e8a5cbd + b2c9482 commit 8cf59f2Copy full SHA for 8cf59f2
internal/provider/config.go
@@ -4,8 +4,8 @@ import (
4
"context"
5
"crypto/tls"
6
"crypto/x509"
7
- "io/ioutil"
8
"net/http"
+ "os"
9
10
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/logging"
11
"github.com/xanzy/go-gitlab"
@@ -29,7 +29,7 @@ func (c *Config) Client(ctx context.Context) (*gitlab.Client, error) {
29
30
// If a CACertFile has been specified, use that for cert validation
31
if c.CACertFile != "" {
32
- caCert, err := ioutil.ReadFile(c.CACertFile)
+ caCert, err := os.ReadFile(c.CACertFile)
33
if err != nil {
34
return nil, err
35
}
0 commit comments