From 516fa2348f9f50b3d5bb8ec73030dff6146ca7f9 Mon Sep 17 00:00:00 2001 From: Rohith Date: Tue, 12 Jun 2018 10:22:05 +0100 Subject: [PATCH] File Path fixes - nothing much here, just fixing up to use filepath.Join rather than strins.Join which is cleaner --- nodeup/pkg/model/context.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodeup/pkg/model/context.go b/nodeup/pkg/model/context.go index 74d5b400d9..084599554b 100644 --- a/nodeup/pkg/model/context.go +++ b/nodeup/pkg/model/context.go @@ -313,8 +313,8 @@ func (c *NodeupModelContext) KubectlPath() string { // BuildCertificatePairTask creates the tasks to pull down the certificate and private key func (c *NodeupModelContext) BuildCertificatePairTask(ctx *fi.ModelBuilderContext, key, path, filename string) error { - certificateName := strings.Join([]string{path, filename + ".pem"}, "/") - keyName := strings.Join([]string{path, filename + "-key.pem"}, "/") + certificateName := filepath.Join(path, filename+".pem") + keyName := filepath.Join(path, filename+"-key.pem") if err := c.BuildCertificateTask(ctx, key, certificateName); err != nil { return err