summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Bokovoy <abokovoy@redhat.com>2011-10-17 00:23:26 +0300
committerRob Crittenden <rcritten@redhat.com>2011-10-20 17:23:21 -0400
commitc9ef39918abc41f0f68c4e6c1b4495fb0a4c976b (patch)
tree7e1b39bd38d0e2a53239b609c5ca900965de74df
parentbb6e720393d9060bfcc0161853b94b0d5f15a2d5 (diff)
downloadfreeipa-c9ef39918abc41f0f68c4e6c1b4495fb0a4c976b.zip
freeipa-c9ef39918abc41f0f68c4e6c1b4495fb0a4c976b.tar.gz
freeipa-c9ef39918abc41f0f68c4e6c1b4495fb0a4c976b.tar.xz
hbactest fails while you have svcgroup in hbacrule
https://fedorahosted.org/freeipa/ticket/1988
-rw-r--r--ipalib/plugins/hbactest.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ipalib/plugins/hbactest.py b/ipalib/plugins/hbactest.py
index 9b33daf..6bbdada 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