[rhel7-branch 12/29] Write sslverify=0 for url kickstart method (#1116858)

bcl installerbot-noreply at redhat.com
Wed Jun 3 00:36:44 UTC 2015


From: "Brian C. Lane" <bcl at redhat.com>

When the url method included --noverifyssl it wasn't writing sslverify=0
to the yum configuration file for the base repo because the attribute is
on the yum repo as .sslverify instead of a kickstart repo obj with
.noverifyssl

Resolves: rhbz#1116858
(cherry picked from commit 94a71f3cd925755f775bb5ce7473b22e631fe88c)

Related: rhbz#1196721
---
 pyanaconda/packaging/yumpayload.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
index 34a5201..6574f5e 100644
--- a/pyanaconda/packaging/yumpayload.py
+++ b/pyanaconda/packaging/yumpayload.py
@@ -334,6 +334,10 @@ def _writeYumRepo(self, repo, repo_path):
 
             # kickstart repo modifiers
             ks_repo = self.getAddOnRepo(repo.id)
+
+            if not ks_repo and not repo.sslverify:
+                f.write("sslverify=0\n")
+
             if not ks_repo:
                 return
 


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/33b8476f242533c82296fbdbf28759892f85793d


More information about the anaconda-patches mailing list