403b09
From 058e260ac530f09f5fb5566a14a87614c4bdff63 Mon Sep 17 00:00:00 2001
403b09
From: Martin Basti <mbasti@redhat.com>
403b09
Date: Fri, 8 Jul 2016 13:40:02 +0200
403b09
Subject: [PATCH] host-find: do not show SSH key by default
403b09
403b09
Only function 'remove_sshpubkey_from_output_list_post' should be used in
403b09
postcallbacks of *-find, otherwise only one entry will be cleaned up
403b09
403b09
https://fedorahosted.org/freeipa/ticket/6043
403b09
403b09
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
403b09
---
403b09
 ipaserver/plugins/host.py | 1 -
403b09
 1 file changed, 1 deletion(-)
403b09
403b09
diff --git a/ipaserver/plugins/host.py b/ipaserver/plugins/host.py
403b09
index 2c5cf48cb80c6a49b6577836231a19cd13d824e2..f342b05c87b936ab7b99009cfb0f6d3acde4ef93 100644
403b09
--- a/ipaserver/plugins/host.py
403b09
+++ b/ipaserver/plugins/host.py
403b09
@@ -1077,7 +1077,6 @@ class host_find(LDAPSearch):
403b09
                 entry_attrs['managing'] = self.obj.get_managed_hosts(entry_attrs.dn)
403b09
 
403b09
             convert_sshpubkey_post(entry_attrs)
403b09
-            remove_sshpubkey_from_output_post(self.context, entry_attrs)
403b09
             convert_ipaassignedidview_post(entry_attrs, options)
403b09
 
403b09
         remove_sshpubkey_from_output_list_post(self.context, entries)
403b09
-- 
403b09
2.4.3
403b09