File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package main
3
3
import (
4
4
"context"
5
5
"fmt"
6
- "io/ioutil"
7
6
"net"
8
7
"os"
9
8
"strings"
@@ -343,7 +342,7 @@ func (d *Driver) PreCreateCheck() error {
343
342
return errors .Wrap (err , "could not get key" )
344
343
}
345
344
346
- buf , err := ioutil .ReadFile (d .originalKey + ".pub" )
345
+ buf , err := os .ReadFile (d .originalKey + ".pub" )
347
346
if err != nil {
348
347
return errors .Wrap (err , "could not read public key" )
349
348
}
@@ -587,7 +586,7 @@ func (d *Driver) createRemoteKeys() error {
587
586
if d .KeyID == 0 {
588
587
log .Infof ("Creating SSH key..." )
589
588
590
- buf , err := ioutil .ReadFile (d .GetSSHKeyPath () + ".pub" )
589
+ buf , err := os .ReadFile (d .GetSSHKeyPath () + ".pub" )
591
590
if err != nil {
592
591
return errors .Wrap (err , "could not read ssh public key" )
593
592
}
You can’t perform that action at this time.
0 commit comments