summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2020-02-24 18:16:47 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2020-02-24 18:16:47 -0800
commit756c0943a17afb1b05b03b58b8bc70aab2858aa5 (patch)
treeec470351bccb8cc1f6831f86a06bf5a91fbb8220
parent922e8842c7a1bb3ecd5e6b268623a7d6badec8f4 (diff)
downloadchef-lcg/dnf-assumeyes.tar.gz
Add assumeyes to dnf helperlcg/dnf-assumeyes
I can't imagine we wouldn't run into needing this Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--lib/chef/provider/package/dnf/dnf_helper.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/provider/package/dnf/dnf_helper.py b/lib/chef/provider/package/dnf/dnf_helper.py
index 0859348212..4ec343efac 100644
--- a/lib/chef/provider/package/dnf/dnf_helper.py
+++ b/lib/chef/provider/package/dnf/dnf_helper.py
@@ -17,6 +17,7 @@ def get_sack():
conf = base.conf
conf.read()
conf.installroot = '/'
+ conf.assumeyes = True
subst = conf.substitutions
subst.update_from_etc(conf.installroot)
try: