File Path fixes

- nothing much here, just fixing up to use filepath.Join rather than strins.Join which is cleaner
This commit is contained in:
Rohith 2018-06-12 10:22:05 +01:00
parent d9694a2cce
commit 516fa2348f
1 changed files with 2 additions and 2 deletions

View File

@ -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