mirror of https://github.com/docker/docs.git
Merge branch 'dm-missing-mapper' into dm
This commit is contained in:
commit
54b0cd7cd1
|
@ -121,6 +121,10 @@ func cleanupDevMapper() error {
|
|||
// Remove any leftover devmapper devices from previous unit run tests
|
||||
infos, err := ioutil.ReadDir("/dev/mapper")
|
||||
if err != nil {
|
||||
// If the mapper file does not exist there is nothing to clean up
|
||||
if os.IsNotExist(err) {
|
||||
return nil
|
||||
}
|
||||
return err
|
||||
}
|
||||
pools := []string{}
|
||||
|
|
Loading…
Reference in New Issue