Skip to content

Commit

Permalink
Merge pull request #38 from weaveworks/37-version-info-panic
Browse files Browse the repository at this point in the history
Prevent panic on version info success
  • Loading branch information
errordeveloper authored Jun 5, 2018
2 parents 93eebcc + ffaf267 commit 9b8e380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/utils/kubectl.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func CheckKubectlVersion() error {
logger.Debug("kubectl: %q", kubectlPath)

clientVersion, _, err := kubectl.GetVersionInfo(ktl)
logger.Debug("clientVersion=%#v err=%q", clientVersion, err.Error())
logger.Debug("clientVersion=%#v err=%q", clientVersion, err)

version, err := semver.Parse(strings.TrimLeft(clientVersion, "v"))
if err != nil {
Expand Down

0 comments on commit 9b8e380

Please sign in to comment.