Skip to content

Commit

Permalink
Merge pull request #16 from oscp/docker_pool_errors
Browse files Browse the repository at this point in the history
Ignore errors if there is no docker-pool
  • Loading branch information
LorenzBischof authored Jan 10, 2019
2 parents 0270a75 + 5889d25 commit c741272
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions daemon/client/checks/docker.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package checks

import (
"errors"
"fmt"
"log"
"os/exec"
Expand All @@ -13,9 +12,8 @@ func CheckDockerPool(okSize int) error {

out, err := exec.Command("bash", "-c", "lvs -o data_percent,metadata_percent,LV_NAME --noheadings --units G --nosuffix | grep docker-pool").Output()
if err != nil {
msg := "Could not parse docker pool size: " + err.Error()
log.Println(msg)
return errors.New(msg)
// ignore errors. grep exits with 1 if docker-pool is not found
return nil
}

isOk := isLvsSizeOk(string(out), okSize)
Expand Down

0 comments on commit c741272

Please sign in to comment.