1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-17 07:30:01 +00:00

Merge pull request #252 from moelsayed/fix_247

Fix backup cert issue on docker version > 17.06
This commit is contained in:
Hussein Galal
2018-01-20 03:35:19 +02:00
committed by GitHub

View File

@@ -176,7 +176,8 @@ func FetchCertificatesFromHost(ctx context.Context, host *hosts.Host, image, loc
certificate := CertificatePKI{} certificate := CertificatePKI{}
crt, err := fetchFileFromHost(ctx, getTempPath(certEnv[0]), image, host) crt, err := fetchFileFromHost(ctx, getTempPath(certEnv[0]), image, host)
if err != nil { if err != nil {
if strings.Contains(err.Error(), "no such file or directory") { if strings.Contains(err.Error(), "no such file or directory") ||
strings.Contains(err.Error(), "Could not find the file") {
return nil, nil return nil, nil
} }
return nil, err return nil, err