Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Commit

Permalink
Handle plus signs in Kubernetes minor version (#928)
Browse files Browse the repository at this point in the history
  • Loading branch information
Douglas-Cleghorn authored Mar 3, 2021
1 parent 291fb3f commit 2239325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/KubectlDetector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static Task<bool> IsKubectlConnectedToClusterAsync(OutputContext output)
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;
}
Expand Down

0 comments on commit 2239325

Please sign in to comment.