Hi,

the output of ipa selinuxusermap-add-hostgroup and selinuxusermap-add-user does not display any more the host/host group or user/group that could not be added. This patch fixes this regression by adding the labels host/hostgroup/user/group to the list of _failed_member_output_params of the class ClientMethod.


https://fedorahosted.org/freeipa/ticket/6026
>From 1f723b069c7469be98b12b80c677f34c36b4c0ac Mon Sep 17 00:00:00 2001
From: Florence Blanc-Renaud <fren...@redhat.com>
Date: Tue, 5 Jul 2016 10:10:57 +0200
Subject: [PATCH] Show full error message for selinuxusermap-add-hostgroup

ipa selinuxusermap-add-hostgroup does not display any more the failed
hosts/hostgroups. Same issue for selinuxusermap-add-user.
This is a regression introduced by f554078291d682d59956998af97f7d3066fbe7e7
(frontend: don't copy command arguments to output params).

The fix consists in adding the labels host/hostgroup/user/group in
_failed_member_output_params of the class ClientMethod.

https://fedorahosted.org/freeipa/ticket/6026
---
 ipaclient/frontend.py | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/ipaclient/frontend.py b/ipaclient/frontend.py
index e8eacc068f4bec5ccdb21228b32a88aea24424df..dea5214c0141d305cb65e5d431775ffc1f7d2b1a 100644
--- a/ipaclient/frontend.py
+++ b/ipaclient/frontend.py
@@ -91,6 +91,23 @@ class ClientMethod(ClientCommand, Method):
             'owner?',
             label=_("Failed owners"),
         ),
+        # selinuxusermap
+        Str(
+            'host',
+            label=_("member host"),
+        ),
+        Str(
+            'hostgroup',
+            label=_("member host group"),
+        ),
+        Str(
+            'user',
+            label=_("member user"),
+        ),
+        Str(
+            'group',
+            label=_("member group"),
+        ),
     )
 
     def get_output_params(self):
-- 
2.7.4

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to