Skip to content

Commit

Permalink
start: fixed the type value for latest minikube version availability …
Browse files Browse the repository at this point in the history
…message
  • Loading branch information
vinu2003 committed Sep 1, 2020
1 parent 51a3155 commit 3e79f85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/minikube/notify/notify.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ func MaybePrintUpdateText(url string, lastUpdatePath string) bool {
glog.Errorf("write time failed: %v", err)
}
url := "/~https://github.com/kubernetes/minikube/releases/tag/v" + latestVersion.String()
out.ErrT(style.Celebrate, `minikube {{.version}} is available! Download it: {{.url}}`, out.V{"version": latestVersion, "url": url})
out.ErrT(style.Tip, "To disable this notice, run: 'minikube config set WantUpdateNotification false'\n")
out.T(style.Celebrate, `minikube {{.version}} is available! Download it: {{.url}}`, out.V{"version": latestVersion, "url": url})
out.T(style.Tip, "To disable this notice, run: 'minikube config set WantUpdateNotification false'\n")
return true
}
return false
Expand Down
2 changes: 1 addition & 1 deletion pkg/minikube/notify/notify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func TestMaybePrintUpdateText(t *testing.T) {
tempDir := tests.MakeTempDir()
defer tests.RemoveTempDir(tempDir)
outputBuffer := tests.NewFakeFile()
out.SetErrFile(outputBuffer)
out.SetOutFile(outputBuffer)

var tc = []struct {
len int
Expand Down

0 comments on commit 3e79f85

Please sign in to comment.