Skip to content

Commit

Permalink
calculate the correct machine-type
Browse files Browse the repository at this point in the history
  • Loading branch information
upodroid committed Jul 26, 2023
1 parent a6776f4 commit a65d207
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/e2e_node/remote/gce/gce_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -768,12 +768,15 @@ func (g *GCERunner) updateKernelArguments(instance *compute.Instance, image stri
}

func (g *GCERunner) machineType(machine string) string {
var ret string
if machine == "" && *instanceType != "" {
machine = *instanceType
ret = *instanceType
} else if machine != "" {
ret = machine
} else {
machine = defaultGCEMachine
ret = defaultGCEMachine
}
return fmt.Sprintf("zones/%s/machineTypes/%s", *zone, machine)
return fmt.Sprintf("zones/%s/machineTypes/%s", *zone, ret)
}
func (g *GCERunner) rebootInstance(instance *compute.Instance) error {
// wait until the instance will not response to SSH
Expand Down

0 comments on commit a65d207

Please sign in to comment.