summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/f_user.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-12-05 15:31:18 -0500
committerRob Crittenden <rcritten@redhat.com>2008-12-10 14:15:19 -0500
commitfc8ac693726ec33b5c0924f9b8ff5d663705a5a3 (patch)
treebd8484d2ebd978a9689ab5f6178a3cd92e124692 /ipalib/plugins/f_user.py
parenta3ab787d23331cf4d060d8463ca66ff602f3629b (diff)
downloadfreeipa-fc8ac693726ec33b5c0924f9b8ff5d663705a5a3.tar.gz
freeipa-fc8ac693726ec33b5c0924f9b8ff5d663705a5a3.tar.xz
freeipa-fc8ac693726ec33b5c0924f9b8ff5d663705a5a3.zip
Port plugins to use the new output_for_cli() argument list
Fix some errors uncovered by the nosetests
Diffstat (limited to 'ipalib/plugins/f_user.py')
-rw-r--r--ipalib/plugins/f_user.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ipalib/plugins/f_user.py b/ipalib/plugins/f_user.py
index e1076242..c8b819dd 100644
--- a/ipalib/plugins/f_user.py
+++ b/ipalib/plugins/f_user.py
@@ -305,7 +305,9 @@ class user_find(crud.Find):
return
textui.print_name(self.name)
for u in users:
- textui.print_plain('%(givenname)s %(sn)s:' % u)
+ gn = u.get('givenname', '')
+ sn= u.get('sn', '')
+ textui.print_plain('%s %s:' % (gn, sn))
textui.print_entry(u)
textui.print_plain('')
if counter == -1: