mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
dnf load substitutions from installroot (#51206)
Fixes #51059 Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
3
changelogs/fragments/51059-dnf-support-substitutions
Normal file
3
changelogs/fragments/51059-dnf-support-substitutions
Normal file
@@ -0,0 +1,3 @@
|
||||
minor_changes:
|
||||
- dnf module now supports loading substitution overrides from the installroot
|
||||
|
||||
@@ -530,6 +530,9 @@ class DnfModule(YumDnf):
|
||||
# Set installroot
|
||||
conf.installroot = installroot
|
||||
|
||||
# Load substitutions from the filesystem
|
||||
conf.substitutions.update_from_etc(installroot)
|
||||
|
||||
# Handle different DNF versions immutable mutable datatypes and
|
||||
# dnf v1/v2/v3
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user