Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/scrutiny/commit/58eaa29e4d2fff740305dacc5fd0869de540d5c5?style=split&whitespace=ignore-change You should set ROOT_URL correctly, otherwise the web may not work correctly.

check for "unknown" wwn value.

fix 
pull/132/head
Jason Kulatunga 4 years ago
parent 9898ff1a33
commit 58eaa29e4d

@ -92,7 +92,7 @@ func (d *Detect) wwnFallback(detectedDevice *models.Device) {
block, err := ghw.Block() block, err := ghw.Block()
if err == nil { if err == nil {
for _, disk := range block.Disks { for _, disk := range block.Disks {
if disk.Name == detectedDevice.DeviceName { if disk.Name == detectedDevice.DeviceName && strings.ToLower(disk.WWN) != "unknown" {
d.Logger.Debugf("Found matching block device. WWN: %s", disk.WWN) d.Logger.Debugf("Found matching block device. WWN: %s", disk.WWN)
detectedDevice.WWN = disk.WWN detectedDevice.WWN = disk.WWN
break break

@ -30,7 +30,7 @@ func (d *Detect) wwnFallback(detectedDevice *models.Device) {
block, err := ghw.Block() block, err := ghw.Block()
if err == nil { if err == nil {
for _, disk := range block.Disks { for _, disk := range block.Disks {
if disk.Name == detectedDevice.DeviceName { if disk.Name == detectedDevice.DeviceName && strings.ToLower(disk.WWN) != "unknown" {
d.Logger.Debugf("Found matching block device. WWN: %s", disk.WWN) d.Logger.Debugf("Found matching block device. WWN: %s", disk.WWN)
detectedDevice.WWN = disk.WWN detectedDevice.WWN = disk.WWN
break break

@ -30,7 +30,7 @@ func (d *Detect) wwnFallback(detectedDevice *models.Device) {
block, err := ghw.Block() block, err := ghw.Block()
if err == nil { if err == nil {
for _, disk := range block.Disks { for _, disk := range block.Disks {
if disk.Name == detectedDevice.DeviceName { if disk.Name == detectedDevice.DeviceName && strings.ToLower(disk.WWN) != "unknown" {
d.Logger.Debugf("Found matching block device. WWN: %s", disk.WWN) d.Logger.Debugf("Found matching block device. WWN: %s", disk.WWN)
detectedDevice.WWN = disk.WWN detectedDevice.WWN = disk.WWN
break break

Loading…
Cancel
Save