Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle the case of no active profile
Browse files Browse the repository at this point in the history
andrejtokarcik committed Dec 5, 2020

Verified

This commit was signed with the committer’s verified signature.
danharrin Dan Harrin
1 parent 5d6fb36 commit 2c43a3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/tsh/tsh.go
Original file line number Diff line number Diff line change
@@ -1057,7 +1057,7 @@ func onListClusters(cf *CLIConf) {
utils.FatalError(err)
}
showActive := func(cluster services.RemoteCluster) string {
if profile.Cluster == cluster.GetName() {
if profile != nil && cluster.GetName() == profile.Cluster {
return "*"
}
return ""

0 comments on commit 2c43a3f

Please sign in to comment.