Skip to content

Commit 160f4b6

Browse files
committed
Add comment
1 parent acaa887 commit 160f4b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/remote/instance.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ func (i *InstanceInfo) CreateOrGetInstance(imageURL, serviceAccount string) erro
134134
newInst.Metadata = meta
135135
}
136136

137+
// If instance exists but machine-type doesn't match, delete instance
137138
curInst, _ := i.computeService.Instances.Get(i.project, i.zone, newInst.Name).Do()
138139
if curInst != nil {
139140
if !strings.Contains(curInst.MachineType, newInst.MachineType) {

0 commit comments

Comments
 (0)