From ecc8ecd8d642af8bfac3ce7ec1af1a0b97ca4590 Mon Sep 17 00:00:00 2001 From: Logan Lipke Date: Mon, 14 Dec 2020 16:57:18 -0800 Subject: [PATCH] Added check in test_group_profile --- py-json/realm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py-json/realm.py b/py-json/realm.py index 3a0294ab..679858a5 100755 --- a/py-json/realm.py +++ b/py-json/realm.py @@ -2268,8 +2268,8 @@ class TestGroupProfile(LFCliBase): self.local_realm.json_post("/cli-json/rm_tgcx", {"tgname": self.group_name, "cxname": cx_name}) def check_group_exists(self): - test_groups = self.local_realm.json_get("/testgroups") - if test_groups is not None: + test_groups = self.local_realm.json_get("/testgroups/all") + if test_groups is not None and "groups" in test_groups: test_groups = test_groups["groups"] for group in test_groups: for k,v in group.items():