Skip to content

Commit c50f38b

Browse files
Merge pull request #9986 from sharifelgamal/fix-none-test
fix ip node retrieve for none driver
2 parents c13a712 + f8d0a91 commit c50f38b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/minikube/node/node.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ func Delete(cc config.ClusterConfig, name string) (*config.Node, error) {
115115

116116
// Retrieve finds the node by name in the given cluster
117117
func Retrieve(cc config.ClusterConfig, name string) (*config.Node, int, error) {
118+
if driver.BareMetal(cc.Driver) {
119+
name = "m01"
120+
}
121+
118122
for i, n := range cc.Nodes {
119123
if n.Name == name {
120124
return &n, i, nil

0 commit comments

Comments
 (0)