mirror of https://github.com/k3s-io/k3s
modify error return
parent
7a4d81ea43
commit
d45dfda425
|
@ -691,10 +691,10 @@ func (vs *VSphere) AttachDisk(vmDiskPath string, nodeName string) (diskID string
|
||||||
|
|
||||||
scsiController = getSCSIController(vmDevices, vs.cfg.Disk.SCSIControllerType)
|
scsiController = getSCSIController(vmDevices, vs.cfg.Disk.SCSIControllerType)
|
||||||
if scsiController == nil {
|
if scsiController == nil {
|
||||||
glog.Errorf("cannot find SCSI controller in VM - %v", err)
|
glog.Errorf("cannot find SCSI controller in VM")
|
||||||
// attempt clean up of scsi controller
|
// attempt clean up of scsi controller
|
||||||
cleanUpController(newSCSIController, vmDevices, vm, ctx)
|
cleanUpController(newSCSIController, vmDevices, vm, ctx)
|
||||||
return "", "", err
|
return "", "", fmt.Errorf("cannot find SCSI controller in VM")
|
||||||
}
|
}
|
||||||
newSCSICreated = true
|
newSCSICreated = true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue