aboutsummaryrefslogtreecommitdiffstats
path: root/gdb-xds.go
diff options
context:
space:
mode:
Diffstat (limited to 'gdb-xds.go')
-rw-r--r--gdb-xds.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb-xds.go b/gdb-xds.go
index f1216ce..9dfb717 100644
--- a/gdb-xds.go
+++ b/gdb-xds.go
@@ -440,7 +440,9 @@ func (g *GdbXds) printProjectsList() (int, error) {
fmt.Fprintln(writer, "\nList of installed cross SDKs (use: export XDS_SDK_ID=<< ID >>):")
fmt.Fprintln(writer, "ID \t Name")
for _, s := range sdks {
- fmt.Fprintf(writer, " %s \t %s\n", s.ID, s.Name)
+ if s.Status == xaapiv1.SdkStatusInstalled {
+ fmt.Fprintf(writer, " %s \t %s\n", s.ID, s.Name)
+ }
}
if len(g.projects) > 0 && len(sdks) > 0 {