[rhel7-branch 1/1] Skip source url checks when network is off (#1251130)
bcl
installerbot-noreply at redhat.com
Fri Aug 14 21:04:11 UTC 2015
From: "Brian C. Lane" <bcl at redhat.com>
Otherwise you cannot exit the Source spoke to turn the network on.
Resolves: rhbz#1251130
---
pyanaconda/ui/gui/spokes/source.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/pyanaconda/ui/gui/spokes/source.py b/pyanaconda/ui/gui/spokes/source.py
index 1fa79d6..6428fc4 100644
--- a/pyanaconda/ui/gui/spokes/source.py
+++ b/pyanaconda/ui/gui/spokes/source.py
@@ -902,6 +902,10 @@ def _sanitize_model(self, model):
# This method is shared by the checks on urlEntry and repoUrlEntry
def _checkURL(self, inputcheck, combo):
+ # Network is not up, don't check urls.
+ if not nm.nm_is_connected():
+ return InputCheck.CHECK_OK
+
url_string = self.get_input(inputcheck.input_obj).strip()
# If this is HTTP/HTTPS/FTP, use the URL_PARSE regex
--
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/b2e6e6c623444d3a960164070b109b9f83eba93f
More information about the anaconda-patches
mailing list