Univention Bugzilla – Bug 55560
"ucr info" command should print the type
Last modified: 2023-01-11 20:37:26 CET
Currently "ucr info" prints the description and the default of an variable, but not the configured type. This should be added.
While this might work for simpl `Type={[ui]int,portnumber,bool,ip[v{4,6}]address,url_{http,proxy}}`, it will not work for `Type=str` as soon as it is combined with `Regex=…` or `Type=int` with arbitrary `Min=…` / `Max=…`: The current format was chosen at it is easy to validate by a machine, but a human might have a hard time to parse it. This was already discussed as part of the implementation of Bug #54495 and we decided to have such human readable description as part the the UCRV description: > $ ucr info directory/manager/rest/debug/level > directory/manager/rest/debug/level: 2 > The verbosity of log messages in /var/log/univention/directory-manager-rest.log. Possible values: 0-4/99 (0: only error messages to 4: all debug statements, with = 99 sensitive data like cleartext passwords is logged as well). See https://git.knut.univention.de/univention/ucs/-/blob/5.0-2/base/univention-config-registry/python/univention/config_registry/validation.py for all currently implemented types.