diff --git a/go.mod b/go.mod index 45a410e7..212983e9 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index 8f5c0e4e..98131e60 100644 --- a/go.sum +++ b/go.sum @@ -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= diff --git a/internal/cmp/helper.go b/internal/cmp/helper.go index 41b53cc6..9b0d86eb 100644 --- a/internal/cmp/helper.go +++ b/internal/cmp/helper.go @@ -1,4 +1,4 @@ -// (C) Copyright 2021 Hewlett Packard Enterprise Development LP +// (C) Copyright 2021-2024 Hewlett Packard Enterprise Development LP package cmp @@ -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