56285f
diff -uNrp anaconda-21.48.22.121.orig/pyanaconda/packaging/yumpayload.py anaconda-21.48.22.121/pyanaconda/packaging/yumpayload.py
56285f
--- anaconda-21.48.22.121.orig/pyananconda/packaging/yumpayload.py      2017-08-31 16:28:06.672265889 +0000
56285f
+++ anaconda-21.48.22.121/pyanaconda/packaging/yumpayload.py    2017-08-31 16:28:38.812826778 +0000
56285f
@@ -41,6 +41,7 @@ import sys
56285f
 import time
56285f
 import hashlib
56285f
 from pyanaconda.iutil import execReadlines, ipmi_abort
56285f
+from pyanaconda.product import productName
56285f
 from pyanaconda.simpleconfig import simple_replace
56285f
 from functools import wraps
56285f
 from urlgrabber.grabber import URLGrabber, URLGrabError
56285f
@@ -519,12 +519,16 @@ reposdir=%s
35d168
     @property
35d168
     def mirrorEnabled(self):
35d168
         with _yum_lock:
56285f
-            # yum initializes with plugins disabled, and when plugins are disabled
56285f
-            # _yum.plugins is a DummyYumPlugins object, which has no useful attributes.
56285f
-            if hasattr(self._yum.plugins, "_plugins"):
56285f
-                return "fastestmirror" in self._yum.plugins._plugins
56285f
+            # we just skip this on CentOS since we cant support it yet
35d168
+            if productName.startswith("CentOS"):
56285f
+              return False
56285f
             else:
56285f
-                return False
56285f
+              # yum initializes with plugins disabled, and when plugins are disabled
56285f
+              # _yum.plugins is a DummyYumPlugins object, which has no useful attributes.
56285f
+              if hasattr(self._yum.plugins, "_plugins"):
56285f
+                  return "fastestmirror" in self._yum.plugins._plugins
56285f
+              else:
56285f
+                  return False
56285f
35d168
     def getRepo(self, repo_id):
56285f
         """Return the yum repo object."""