Open
Description
Describe the bug
Using the Post transaction actions Plugin for DNF causes a python error when any action is configured.
Package
python3-dnf-plugin-post-transaction-actions-4.1.0-1.amzn2023.0.2.noarch
To Reproduce
Steps to reproduce the behavior:
- install package 'dnf install python3-dnf-plugin-post-transaction-actions'
- create an action e.g. '/etc/dnf/plugins/post-transaction-actions.d/99-some-dummy.action'
*:in:/bin/true
- install something with dnf 'dnf install python3-bcrypt'
- See error
Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/dnf/plugin.py", line 104, in _caller getattr(plugin, method)() File "/usr/lib/python3.9/site-packages/dnf-plugins/post-transaction-actions.py", line 146, in transaction command = self._replace_vars(ts_item, a_command) File "/usr/lib/python3.9/site-packages/dnf-plugins/post-transaction-actions.py", line 104, in _replace_vars result = libdnf.conf.ConfigParser_substitute(command, vardict) AttributeError: module 'libdnf.conf' has no attribute 'ConfigParser_substitute'
Fix
There is already a fix for that exact problem in upstream dnf-plugins-core: