From c19df53f7302b9ed7cf770a852c37fb0ced5b068 Mon Sep 17 00:00:00 2001 From: Mahesh N Date: Mon, 22 Apr 2024 14:43:49 +0530 Subject: [PATCH] Parse version fix --- pkg/client/helper.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/client/helper.go b/pkg/client/helper.go index 1b00d18..812647b 100644 --- a/pkg/client/helper.go +++ b/pkg/client/helper.go @@ -1,4 +1,4 @@ -// (C) Copyright 2021 Hewlett Packard Enterprise Development LP +// (C) Copyright 2021-2024 Hewlett Packard Enterprise Development LP package client @@ -77,7 +77,7 @@ func parseVersion(version string) (int, error) { if version == "" { return 0, nil } - + version = strings.Split(version, "-")[0] versionSplit := strings.Split(version, ".") mul := 10000