From 0d9431beffbab69add7d7c14347b2b4583d03e2b Mon Sep 17 00:00:00 2001 From: Katerina Koukiou Date: Fri, 20 Sep 2024 15:18:31 +0200 Subject: [PATCH] pyanaconda: fix incorrect access to --repo argument The '--repo' argument has a variable destination of 'method'. --- pyanaconda/payload/dnf/payload.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyanaconda/payload/dnf/payload.py b/pyanaconda/payload/dnf/payload.py index 708c1a84e3d..0d55a69fd2f 100644 --- a/pyanaconda/payload/dnf/payload.py +++ b/pyanaconda/payload/dnf/payload.py @@ -68,8 +68,8 @@ def set_from_opts(self, opts): def _set_default_source(self, opts): """Set the default source. - Set the source based on opts.repo if it isn't already set - - opts.repo is currently set by command line/boot options. + Set the source based on opts.method if it isn't already set + - opts.method is currently set by command line/boot options. Otherwise, use the source provided at a specific mount point by Dracut if there is any. @@ -89,9 +89,9 @@ def _set_default_source(self, opts): if self.proxy.Sources: log.debug("The DNF source is already set.") - elif opts.repo: + elif opts.method: log.debug("Use the DNF source from opts.") - source_proxy = self._create_source_from_url(opts.repo) + source_proxy = self._create_source_from_url(opts.method) set_source(self.proxy, source_proxy) elif verify_valid_repository(DRACUT_REPO_DIR):