diff options
author | Rob Crittenden <rcritten@redhat.com> | 2009-03-23 15:08:41 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-03-25 11:02:42 -0400 |
commit | 65e6259075e148d2bb88d3644837d62472f4c8d7 (patch) | |
tree | bdb8b2a976f5a6e836421a89c701889fbc0fbc18 /ipalib | |
parent | a8a2664190eb6f2604d4753b4af8a599a4e24c4b (diff) | |
download | freeipa-65e6259075e148d2bb88d3644837d62472f4c8d7.tar.gz freeipa-65e6259075e148d2bb88d3644837d62472f4c8d7.tar.xz freeipa-65e6259075e148d2bb88d3644837d62472f4c8d7.zip |
Always print the dn first when printing an entry
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/cli.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py index 6bacd5027..4e04b531c 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -248,6 +248,9 @@ class textui(backend.Backend): uid: 'flast' """ assert type(entry) is dict + if entry.get('dn'): + self.print_indented('dn: %s' % (repr(entry['dn'])), indent) + del entry['dn'] for key in sorted(entry): value = entry[key] if type(value) in (list, tuple): |