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

Drop deprecated io/ioutil

parent f8484ad4
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,6 @@ import (
"crypto/tls"
"crypto/x509"
"fmt"
"io/ioutil"
"log"
"net/http"
"os"
......@@ -195,7 +194,7 @@ func newComputeV2() (*gophercloud.ServiceClient, error) {
}
if v := os.Getenv("OS_CACERT"); v != "" {
caCert, err := ioutil.ReadFile(v)
caCert, err := os.ReadFile(v)
if err != nil {
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