From 66f1ac35abc97a9515cf63f34e429e4bd1347616 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 13 Apr 2021 10:01:49 -0400 Subject: [PATCH] Skip an empty local cluster in cluster list --- client-cli/pvc.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/client-cli/pvc.py b/client-cli/pvc.py index a53706e6..0538af33 100755 --- a/client-cli/pvc.py +++ b/client-cli/pvc.py @@ -331,11 +331,7 @@ def cluster_list(): if os.path.isfile(cfgfile): description, address, port, scheme, api_key = read_from_yaml(cfgfile) else: - description = 'N/A' - address = 'N/A' - port = 'N/A' - scheme = 'N/A' - api_key = 'N/A' + continue else: address = cluster_details.get('host', 'N/A') description = cluster_details.get('description', 'N/A')