Skip to content

Commit

Permalink
Merge pull request #71 from c-bata/fix-context-list
Browse files Browse the repository at this point in the history
Fix the bug of context list has a blank item
  • Loading branch information
c-bata authored Dec 2, 2019
2 parents dcc18ee + d3b917a commit 1234113
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kube/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ func fetchContextList() {
}
updateLastFetchedAt(key)
r := ExecuteAndGetResult("config get-contexts --no-headers -o name")
r = strings.TrimRight(r, "\n")
contextList.Store(strings.Split(r, "\n"))
}

Expand Down

0 comments on commit 1234113

Please sign in to comment.