Browse Source
Handle plus signs in Kubernetes minor version (#928)
darc-main-e5ea0866-8be1-4711-8688-8fd9b7dae18a
Douglas-Cleghorn
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/shared/KubectlDetector.cs
|
|
|
@ -48,7 +48,7 @@ namespace Microsoft.Tye |
|
|
|
continue; |
|
|
|
} |
|
|
|
var major = int.Parse(element.Value.GetProperty("major").GetString()); |
|
|
|
var minor = int.Parse(element.Value.GetProperty("minor").GetString()); |
|
|
|
var minor = int.Parse(element.Value.GetProperty("minor").GetString().Trim('+')); |
|
|
|
var version = new Version(major, minor); |
|
|
|
return version; |
|
|
|
} |
|
|
|
|