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