Fix failing UT
Change-Id: Id9e7a91af1351189152abd6500cc2a78330e7b90
Signed-off-by: Mohamed Abukar <abukar.mohamed@nokia.com>
diff --git a/pkg/helm/helm.go b/pkg/helm/helm.go
index a972e75..3a35877 100755
--- a/pkg/helm/helm.go
+++ b/pkg/helm/helm.go
@@ -48,7 +48,7 @@
var temp string
temp = os.Getenv("HELMVERSION")
if temp == "" {
- temp = "HELMVERSION=v2.12.3"
+ temp = "v2.12.3"
}
appmgr.Logger.Info("Inside new Helm")
temp = strings.TrimLeft(temp,"v")
@@ -385,7 +385,6 @@
args = fmt.Sprintf("%s --version=%s", args, x.HelmVersion)
}
-
if cm.EnvHelmVersion == cm.HELM_VERSION_2 {
if x.ReleaseName != "" {
args = fmt.Sprintf("%s --name=%s", args, x.ReleaseName)
@@ -418,7 +417,6 @@
repoName = "helm-repo"
}
-
if cm.EnvHelmVersion == cm.HELM_VERSION_3 {
appmgr.Logger.Info ("GetInstallArgs last: Version 3")
return fmt.Sprintf("install %s %s/%s %s",*x.XappName, repoName, *x.XappName, args)