Skip to content

Commit

Permalink
Set SCSI controller type to unknown when nil (#1188)
Browse files Browse the repository at this point in the history
  • Loading branch information
bill-rich authored Aug 31, 2020
1 parent 2b8a6a7 commit baa5bd1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ func ReadSCSIBusSharing(l object.VirtualDeviceList, count int) string {
}
}
log.Printf("[DEBUG] ReadSCSIBusSharing: SCSI controller layout for first %d controllers: %s", count, scsiControllerListString(ctlrs))
if len(ctlrs) == 0 {
if len(ctlrs) == 0 || ctlrs[0] == nil {
return subresourceControllerSharingUnknown
}
last := ctlrs[0].(types.BaseVirtualSCSIController).GetVirtualSCSIController().SharedBus
Expand Down

0 comments on commit baa5bd1

Please # to comment.