Skip to content
Snippets Groups Projects
Commit e06a3719 authored by kayrus's avatar kayrus
Browse files

Drop deprecated io/ioutil

parent f8484ad4
Branches
Tags
No related merge requests found
...@@ -5,7 +5,6 @@ import ( ...@@ -5,7 +5,6 @@ import (
"crypto/tls" "crypto/tls"
"crypto/x509" "crypto/x509"
"fmt" "fmt"
"io/ioutil"
"log" "log"
"net/http" "net/http"
"os" "os"
...@@ -195,7 +194,7 @@ func newComputeV2() (*gophercloud.ServiceClient, error) { ...@@ -195,7 +194,7 @@ func newComputeV2() (*gophercloud.ServiceClient, error) {
} }
if v := os.Getenv("OS_CACERT"); v != "" { if v := os.Getenv("OS_CACERT"); v != "" {
caCert, err := ioutil.ReadFile(v) caCert, err := os.ReadFile(v)
if err != nil { if err != nil {
return nil, fmt.Errorf("failed to read %q CA certificate: %s", v, err) return nil, fmt.Errorf("failed to read %q CA certificate: %s", v, err)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment