@@ -15,7 +15,6 @@ package main
15
15
16
16
import (
17
17
"fmt"
18
- "io/ioutil"
19
18
"net/url"
20
19
"os"
21
20
"regexp"
@@ -130,7 +129,7 @@ func getDataSources() ([]string, error) {
130
129
131
130
dataSourceUserFile := os .Getenv ("DATA_SOURCE_USER_FILE" )
132
131
if len (dataSourceUserFile ) != 0 {
133
- fileContents , err := ioutil .ReadFile (dataSourceUserFile )
132
+ fileContents , err := os .ReadFile (dataSourceUserFile )
134
133
if err != nil {
135
134
return nil , fmt .Errorf ("failed loading data source user file %s: %s" , dataSourceUserFile , err .Error ())
136
135
}
@@ -141,7 +140,7 @@ func getDataSources() ([]string, error) {
141
140
142
141
dataSourcePassFile := os .Getenv ("DATA_SOURCE_PASS_FILE" )
143
142
if len (dataSourcePassFile ) != 0 {
144
- fileContents , err := ioutil .ReadFile (dataSourcePassFile )
143
+ fileContents , err := os .ReadFile (dataSourcePassFile )
145
144
if err != nil {
146
145
return nil , fmt .Errorf ("failed loading data source pass file %s: %s" , dataSourcePassFile , err .Error ())
147
146
}
@@ -153,7 +152,7 @@ func getDataSources() ([]string, error) {
153
152
ui := url .UserPassword (user , pass ).String ()
154
153
dataSrouceURIFile := os .Getenv ("DATA_SOURCE_URI_FILE" )
155
154
if len (dataSrouceURIFile ) != 0 {
156
- fileContents , err := ioutil .ReadFile (dataSrouceURIFile )
155
+ fileContents , err := os .ReadFile (dataSrouceURIFile )
157
156
if err != nil {
158
157
return nil , fmt .Errorf ("failed loading data source URI file %s: %s" , dataSrouceURIFile , err .Error ())
159
158
}
0 commit comments