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:
Mrunal Patel 2016-12-07 11:08:00 -08:00
parent 47ea5c75eb
commit 8f55948aa5
1 changed files with 3 additions and 0 deletions

View File

@ -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)