1
0
Fork 0
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:
Adam Miller 2019-01-29 14:10:53 -06:00 committed by Brian Coca
parent 60d134aeaf
commit 61ed229732
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,3 @@
minor_changes:
- dnf module now supports loading substitution overrides from the installroot

View file

@ -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
#