Don't add device to list if it doesn't exist anymore
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
parent
47ea5c75eb
commit
8f55948aa5
|
@ -94,6 +94,9 @@ func getDevices(path string) ([]*configs.Device, error) {
|
|||
if err == ErrNotADevice {
|
||||
continue
|
||||
}
|
||||
if os.IsNotExist(err) {
|
||||
continue
|
||||
}
|
||||
return nil, err
|
||||
}
|
||||
out = append(out, device)
|
||||
|
|
Loading…
Reference in New Issue