mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
builder: treat unset keep-storage as 0
Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
parent
889ddcd328
commit
d6ac2b0db0
1 changed files with 3 additions and 0 deletions
|
@ -170,6 +170,9 @@ func (br *buildRouter) postPrune(ctx context.Context, w http.ResponseWriter, r *
|
|||
return errors.Wrap(err, "could not parse filters")
|
||||
}
|
||||
ksfv := r.FormValue("keep-storage")
|
||||
if ksfv == "" {
|
||||
ksfv = "0"
|
||||
}
|
||||
ks, err := strconv.Atoi(ksfv)
|
||||
if err != nil {
|
||||
return errors.Wrapf(err, "keep-storage is in bytes and expects an integer, got %v", ksfv)
|
||||
|
|
Loading…
Add table
Reference in a new issue