mirror of
https://github.com/rancher/rke.git
synced 2025-04-28 03:31:24 +00:00
Remove trailing slash from tmp cert path
This commit is contained in:
parent
51742e8f49
commit
5dd253a611
@ -7,6 +7,7 @@ import (
|
||||
"fmt"
|
||||
"net"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/docker/docker/api/types/container"
|
||||
@ -269,7 +270,7 @@ func ExtractBackupBundleOnHost(ctx context.Context, host *hosts.Host, alpineSyst
|
||||
TempCertPath,
|
||||
BundleCertPath,
|
||||
TempCertPath,
|
||||
len(strings.Split(TempCertPath, "/"))-1),
|
||||
len(strings.Split(filepath.Clean(TempCertPath), "/"))-1),
|
||||
},
|
||||
Image: alpineSystemImage,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user