Univention Bugzilla – Bug 34180
Output should be sorted by property names
Last modified: 2017-07-05 13:06:10 CEST
The properties in the output of "udm $MODULE list" are not sorted, which makes it hard to find a specific one, as udm-cli does not provide a native display filter and "grep" is too complex when multiple entries are shown: udm settings/extended_attribute list --filter name=objectFlag | sed -ne '/^DN:/,/^$/s/:.*//p;' | uniq DN translationLongDescription objectClass groupPosition module overwritePosition hook overwriteTab shortDescription groupName version valueRequired CLIName translationShortDescription fullWidth longDescription doNotSearch tabName syntax tabAdvanced name default mayChange multivalue ldapMapping deleteObjectClass notEditable tabPosition disableUDMWeb /usr/share/pyshared/univention/admincli/admin.py:1131 - for key, value in object.items(): + for key, value in sorted(object.items()):
*** Bug 39579 has been marked as a duplicate of this bug. ***
I stumble on this sometimes. This is why I avoid using UDM and use ldapsearch directly. One-line patch exists.
I think the identifies=True properties should be shown first.
(In reply to Philipp Hahn from comment #0) > /usr/share/pyshared/univention/admincli/admin.py:1131 > - for key, value in object.items(): > + for key, value in sorted(object.items()): Applied patch: r 80760 univention-directory-manager-modules (12.0.17-47) * Bug #34180: Applied patch from Philipp Hahn - Sort properties of udm list output YAML: r 80761
OK: output is sorted and looks good OK: YAML
<http://errata.software-univention.de/ucs/4.2/79.html>