summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2009-03-16 17:48:04 -0400
committerRob Crittenden <rcritten@redhat.com>2009-03-17 14:52:38 -0400
commit4c5806b4b42c63f08b286f984e4032fcefcfd1e8 (patch)
tree2ca636aae0ee16d2ddeba1dea07dede624d9b40f
parent6fa330662ad1df7f95ba7ce758fdd03d4527abe4 (diff)
downloadfreeipa-4c5806b4b42c63f08b286f984e4032fcefcfd1e8.tar.gz
freeipa-4c5806b4b42c63f08b286f984e4032fcefcfd1e8.tar.xz
freeipa-4c5806b4b42c63f08b286f984e4032fcefcfd1e8.zip
Fix some minor issues in group and service plugins
-rw-r--r--ipalib/plugins/f_group.py2
-rw-r--r--ipalib/plugins/f_service.py6
2 files changed, 3 insertions, 5 deletions
diff --git a/ipalib/plugins/f_group.py b/ipalib/plugins/f_group.py
index 3a3debdb7..b9f536916 100644
--- a/ipalib/plugins/f_group.py
+++ b/ipalib/plugins/f_group.py
@@ -411,7 +411,7 @@ class group_remove_member(Command):
"""
if result:
print "These entries failed to be removed from the group:"
- for a in remove_failed:
+ for a in result:
print "\t'%s'" % a
api.register(group_remove_member)
diff --git a/ipalib/plugins/f_service.py b/ipalib/plugins/f_service.py
index 918eef903..301954969 100644
--- a/ipalib/plugins/f_service.py
+++ b/ipalib/plugins/f_service.py
@@ -116,8 +116,7 @@ class service_add(crud.Add):
return ldap.create(**kw)
def output_to_cli(self, ret):
- if ret:
- print "Service added"
+ textui.print_plain("Service added")
api.register(service_add)
@@ -140,8 +139,7 @@ class service_del(crud.Del):
return ldap.delete(dn)
def output_to_cli(self, ret):
- if ret:
- print "Service removed"
+ textui.print_plain("Service removed")
api.register(service_del)