提交 1d6c86c8 编写于 作者: A Anders F Björklund

Also remove unused machine SetConfigFromFlags

Setting the config directly instead in minikube
上级 72a0fd66
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册