From c9ef39918abc41f0f68c4e6c1b4495fb0a4c976b Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Mon, 17 Oct 2011 00:23:26 +0300 Subject: hbactest fails while you have svcgroup in hbacrule https://fedorahosted.org/freeipa/ticket/1988 --- ipalib/plugins/hbactest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ipalib/plugins/hbactest.py b/ipalib/plugins/hbactest.py index 9b33dafa4..6bbdada4e 100644 --- a/ipalib/plugins/hbactest.py +++ b/ipalib/plugins/hbactest.py @@ -283,8 +283,9 @@ class hbactest(Command): if options['service'] != u'all': try: request.service.name = options['service'] - request.service.groups = \ - self.api.Command.hbacsvcgroup_show(request.service.name)['result']['member_hbacsvc'] + service_result = self.api.Command.hbacsvc_show(request.service.name)['result'] + if 'memberof_hbacsvcgroup' in service_result: + request.service.groups = service_result['memberof_hbacsvcgroup'] except: pass -- cgit