mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
dnf load substitutions from installroot (#51206)
Fixes #51059 Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
parent
60d134aeaf
commit
61ed229732
2 changed files with 6 additions and 0 deletions
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
|
# Set installroot
|
||||||
conf.installroot = installroot
|
conf.installroot = installroot
|
||||||
|
|
||||||
|
# Load substitutions from the filesystem
|
||||||
|
conf.substitutions.update_from_etc(installroot)
|
||||||
|
|
||||||
# Handle different DNF versions immutable mutable datatypes and
|
# Handle different DNF versions immutable mutable datatypes and
|
||||||
# dnf v1/v2/v3
|
# dnf v1/v2/v3
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue