Skip to content

Commit f856f66

Browse files
committed
requirements: Pass -y to dnf install commands
doctor --fix should not be interactive. Signed-off-by: Zack Cerza <zack@redhat.com>
1 parent b54a6a8 commit f856f66

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

ceph_devstack/requirements.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,13 @@ class PodmanDNSPlugin(FixableRequirement):
194194
dns_plugin_path = "/usr/libexec/cni/dnsname"
195195
check_cmd = ["test", "-x", dns_plugin_path]
196196
suggest_msg = "Could not find the podman DNS plugin"
197-
fix_cmd = ["sudo", "dnf", "install", dns_plugin_path]
197+
fix_cmd = ["sudo", "dnf", "install", "-y", dns_plugin_path]
198198

199199

200200
class FuseOverlayfsPresence(FixableRequirement):
201201
check_cmd = ["command", "-v", "fuse-overlayfs"]
202202
suggest_msg = "Could not find fuse-overlayfs"
203-
fix_cmd = ["sudo", "dnf", "install", "fuse-overlayfs"]
203+
fix_cmd = ["sudo", "dnf", "install", "-y", "fuse-overlayfs"]
204204

205205

206206
async def check_requirements():

ceph_devstack/resources/ceph/requirements.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def __init__(self):
5353
"(sudo",
5454
"dnf",
5555
"install",
56+
"-y",
5657
"policycoreutils-devel",
5758
"selinux-policy-devel",
5859
"&&",

0 commit comments

Comments
 (0)