Skip to content

Commit

Permalink
cmd/start: Remove duplicate message
Browse files Browse the repository at this point in the history
At the end of a successful crc start, crc prints this message twice:
"To access the cluster, first set up your environment by following 'crc
oc-env' instructions."

This commit removes the second occurrence.

This fixes #1657
  • Loading branch information
cfergeau authored and guillaumerose committed Nov 16, 2020
1 parent 6c91127 commit 80540e3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion cmd/crc/cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ func (s *startResult) prettyPrintTo(writer io.Writer) error {
"To access the cluster, first set up your environment by following 'crc oc-env' instructions.",
fmt.Sprintf("Then you can access it by running 'oc login -u %s -p %s %s'.", s.ClusterConfig.DeveloperCredentials.Username, s.ClusterConfig.DeveloperCredentials.Password, s.ClusterConfig.URL),
fmt.Sprintf("To login as an admin, run 'oc login -u %s -p %s %s'.", s.ClusterConfig.AdminCredentials.Username, s.ClusterConfig.AdminCredentials.Password, s.ClusterConfig.URL),
"To access the cluster, first set up your environment by following 'crc oc-env' instructions.",
"",
"You can now run 'crc console' and use these credentials to access the OpenShift web console.",
}, "\n"))
Expand Down
1 change: 0 additions & 1 deletion cmd/crc/cmd/start_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ func TestRenderActionPlainSuccess(t *testing.T) {
To access the cluster, first set up your environment by following 'crc oc-env' instructions.
Then you can access it by running 'oc login -u developer -p developer https://api.crc.testing:6443'.
To login as an admin, run 'oc login -u kubeadmin -p secret https://api.crc.testing:6443'.
To access the cluster, first set up your environment by following 'crc oc-env' instructions.
You can now run 'crc console' and use these credentials to access the OpenShift web console.
`, out.String())
Expand Down

0 comments on commit 80540e3

Please sign in to comment.