diff options
Diffstat (limited to 'ipalib/plugins/hbactest.py')
-rw-r--r-- | ipalib/plugins/hbactest.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ipalib/plugins/hbactest.py b/ipalib/plugins/hbactest.py index 9b33dafa..6bbdada4 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 |