only use retrieval code for multinode clusters

pull/8238/head
Sharif Elgamal 2020-05-21 14:08:34 -07:00
parent 95755c07fd
commit 9fe9513c34
2 changed files with 1 additions and 3 deletions

View File

@ -33,8 +33,6 @@ matrix:
script: make
after_success:
- bash <(curl -s https://codecov.io/bash)
travisBuddy:
regex: (FAIL:|\.go:\d+:|^panic:|failed$)
notifications:
webhooks:
urls:

View File

@ -107,7 +107,7 @@ var statusCmd = &cobra.Command{
var statuses []*Status
if nodeName != "" || statusFormat != defaultStatusFormat {
if nodeName != "" || statusFormat != defaultStatusFormat && len(cc.Nodes) > 1 {
n, _, err := node.Retrieve(*cc, nodeName)
if err != nil {
exit.WithError("retrieving node", err)