From 4a6f578aa0cd77893ea9004a62a54b2519e3e308 Mon Sep 17 00:00:00 2001 From: Logan Lipke Date: Fri, 11 Dec 2020 15:45:36 -0800 Subject: [PATCH] show_group works correctly now --- py-scripts/testgroup.py | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/py-scripts/testgroup.py b/py-scripts/testgroup.py index b98c951a..14928fdc 100755 --- a/py-scripts/testgroup.py +++ b/py-scripts/testgroup.py @@ -71,11 +71,21 @@ class TestGroup(LFCliBase): def show_info(self): time.sleep(.5) if self.list_groups: - print("Current Test Groups: ") - for group in self.tg_profile.list_groups(): - print(group) + tg_list = self.tg_profile.list_groups() + if len(tg_list) > 0: + print("Current Test Groups: ") + for group in tg_list: + print(group) + else: + print("No test groups found") if self.show_group: - print("show_group not yet implemented") + cx_list = self.tg_profile.list_cxs() + if len(cx_list) > 0: + print("Showing cxs in %s" % self.tg_profile.group_name) + for cx in cx_list: + print(cx) + else: + print("No cxs found in %s" % self.tg_profile.group_name) def update_cxs(self): if len(self.add_cx_list) > 0: