Skip to content

Commit

Permalink
Merge pull request #229 from HewlettPackard/fix_parse_version
Browse files Browse the repository at this point in the history
Fix Parse version
  • Loading branch information
manjunath-batakurki authored Apr 22, 2024
2 parents be30148 + dc39af7 commit 7dcc0ae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/HewlettPackard/hpegl-vmaas-terraform-resources
go 1.17

require (
github.com/HewlettPackard/hpegl-vmaas-cmp-go-sdk v0.1.6
github.com/HewlettPackard/hpegl-vmaas-cmp-go-sdk v0.1.7
github.com/golang/mock v1.6.0
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320
github.com/hashicorp/terraform-plugin-docs v0.9.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ github.com/BurntSushi/toml v0.4.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbi
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ=
github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24/go.mod h1:4UJr5HIiMZrwgkSPdsjy2uOQExX/WEILpIrO9UPGuXs=
github.com/HewlettPackard/hpegl-vmaas-cmp-go-sdk v0.1.6 h1:oRlKt4lhXDknjzKT6j6ooVJ+KcRUIkYp9Gg2CK/Myi8=
github.com/HewlettPackard/hpegl-vmaas-cmp-go-sdk v0.1.6/go.mod h1:gPk3WuH1P3kF3ROxyHERgKMMFHR+W0Fsspg5vsA0+O0=
github.com/HewlettPackard/hpegl-vmaas-cmp-go-sdk v0.1.7 h1:edaYJtBkJmYJwBpgXSzmAEELuK6cXBzI90dshaYmFAE=
github.com/HewlettPackard/hpegl-vmaas-cmp-go-sdk v0.1.7/go.mod h1:gPk3WuH1P3kF3ROxyHERgKMMFHR+W0Fsspg5vsA0+O0=
github.com/Masterminds/goutils v1.1.0/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU=
github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI=
github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU=
Expand Down
4 changes: 2 additions & 2 deletions internal/cmp/helper.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// (C) Copyright 2021 Hewlett Packard Enterprise Development LP
// (C) Copyright 2021-2024 Hewlett Packard Enterprise Development LP

package cmp

Expand All @@ -23,7 +23,7 @@ func ParseVersion(version string) (int, error) {
if version == "" {
return 0, nil
}

version = strings.Split(version, "-")[0]
versionSplit := strings.Split(version, ".")

mul := 10000
Expand Down

0 comments on commit 7dcc0ae

Please sign in to comment.