configparser: use no strict parser to mimic old behavior
Now it should allow duplicate options and sections in the INI files, the latest value is taken, the previous values are ignored, e.g.:
[selinux] avc_cache_threshold=4096 avc_cache_threshold=8192
The avc_cache_threshold will be set to the 8192.
Related: rhbz#2071418
Signed-off-by: Jaroslav Škarvada [email protected]
This doesn't handle warnings in case of a duplicate. This would require extension of the ConfigParser (IMHO it is also doable).
It allows duplicates in all INI files.
Thank you for the PR, tested on RHEL-8.6 and Fedora 36. No warning on duplicate lines is issued, but I guess we can live with that.