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