forked from TrueCloudLab/distribution
Merge pull request #17617 from askb/17168_pull_error_fix
Fix for #17168 issue
This commit is contained in:
commit
fc2531f15c
1 changed files with 5 additions and 0 deletions
|
@ -13,6 +13,7 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
"runtime"
|
||||||
"strings"
|
"strings"
|
||||||
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/Sirupsen/logrus"
|
"github.com/Sirupsen/logrus"
|
||||||
|
@ -219,6 +220,10 @@ func ContinueOnError(err error) bool {
|
||||||
return shouldV2Fallback(v)
|
return shouldV2Fallback(v)
|
||||||
case *client.UnexpectedHTTPResponseError:
|
case *client.UnexpectedHTTPResponseError:
|
||||||
return true
|
return true
|
||||||
|
case error:
|
||||||
|
if val := strings.Contains(err.Error(), strings.ToLower(syscall.ENOSPC.Error())); val {
|
||||||
|
return false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// let's be nice and fallback if the error is a completely
|
// let's be nice and fallback if the error is a completely
|
||||||
// unexpected one.
|
// unexpected one.
|
||||||
|
|
Loading…
Reference in a new issue