PR comment

This commit is contained in:
Paul Meyer 2019-10-15 21:13:07 +00:00
parent d3dc1be71c
commit b716299d8e
1 changed files with 1 additions and 2 deletions

View File

@ -49,8 +49,7 @@ func (da diskAttacher) WaitForDevice(ctx context.Context, lun int32) (device str
link, err := os.Readlink(path)
if err == nil {
return filepath.Abs("/dev/disk/azure/scsi1/" + link)
}
if err != nil && err != os.ErrNotExist {
} else if err != os.ErrNotExist {
if pe, ok := err.(*os.PathError); ok && pe.Err != syscall.ENOENT {
return "", err
}