Also remove unused machine SetConfigFromFlags

Setting the config directly instead in minikube
pull/10099/head
Anders F Björklund 2021-01-06 21:05:14 +01:00
parent 72a0fd6642
commit 1d6c86c8b5
1 changed files with 0 additions and 15 deletions

View File

@ -17,7 +17,6 @@ limitations under the License.
package generic
import (
"errors"
"fmt"
"net"
"os"
@ -76,20 +75,6 @@ func (d *Driver) GetSSHKeyPath() string {
return d.SSHKeyPath
}
func (d *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error {
d.EnginePort = flags.Int("generic-engine-port")
d.IPAddress = flags.String("generic-ip-address")
d.SSHUser = flags.String("generic-ssh-user")
d.SSHKey = flags.String("generic-ssh-key")
d.SSHPort = flags.Int("generic-ssh-port")
if d.IPAddress == "" {
return errors.New("generic driver requires the --generic-ip-address option")
}
return nil
}
func (d *Driver) PreCreateCheck() error {
if d.SSHKey != "" {
if _, err := os.Stat(d.SSHKey); os.IsNotExist(err) {