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
libcontainer/devices
|
@ -94,6 +94,9 @@ func getDevices(path string) ([]*configs.Device, error) {
|
||||||
if err == ErrNotADevice {
|
if err == ErrNotADevice {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if os.IsNotExist(err) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
out = append(out, device)
|
out = append(out, device)
|
||||||
|
|
Loading…
Reference in New Issue