Univention Bugzilla – Bug 57546
Setting multiple app configuration options at once fails silently
Last modified: 2024-09-10 13:08:08 CEST
When using univention-app configure <appname> --set <opt1>=<val1> --set <opt2>=<val2> no option is getting set. There is also no error message or other indication that nothing has happened. If we check the options afterwards however we can see it. A workaround is to set only one option at a time univention-app configure <appname> --set <opt1>=<val1> univention-app configure <appname> --set <opt2>=<val2> This issue is highly misleading and definitely not the intended behavior. It is unknown if setting options in the UMC is also impacted. The issue was already seen for the apps keycloak and ox-connector. This indicates that it is a general issue.
You have to use: univention-app configure <appname> --set <opt1>=<val1> <opt2>=<val2>
@Daniel that explains what we did wrong. It is still inconsistent with how other UCS Tools are used (UCR) and no error message indicates a user error. Therefore i would like to keep this bug open.
(In reply to Lukas Zumvorde from comment #0) > When using > > univention-app configure <appname> --set <opt1>=<val1> --set <opt2>=<val2> > > no option is getting set. This should definitely not be true. <opt2>=<val2> would have been set while <opt1>=<val1> is discarded. I think the use cases for this feature in argparse are things like `alias change_keycloak=univention-app configure keycloak --set x=y` which could then be overridden. This is not really a use case for us, though. I changed it with univention-appcenter.yaml 2ee5cf7ee4d8 | Bug #57546: YAML univention-appcenter (9.0.12-3) f0d1c6e811e4 | Bug #57546: univention-app can now be called with multiple --set args ucs-test (10.0.22-69) f0d1c6e811e4 | Bug #57546: univention-app can now be called with multiple --set args While at it, I did the same for --unset. Cherry-picked to 5.1-0 and 5.2-0.
New automated test looks good both in Jenkins and when run locally, and no other tests are failing because of this change. Manual testing was also OK.