[rhel7-branch 8/8] Fix RHEL Atomic installclass test

bcl installerbot-noreply at redhat.com
Thu Jun 4 20:51:08 UTC 2015


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

Hidden defaults to True so you need to set it to False when there isn't
a match.

Related: rhbz#1196721
---
 pyanaconda/installclasses/rhel.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/installclasses/rhel.py b/pyanaconda/installclasses/rhel.py
index ea1dbad..ececad0 100644
--- a/pyanaconda/installclasses/rhel.py
+++ b/pyanaconda/installclasses/rhel.py
@@ -73,8 +73,8 @@ def __init__(self):
 class RHELAtomicInstallClass(RHELBaseInstallClass):
     name = "Red Hat Enterprise Linux Atomic Host"
     sortPriority=21000
-    if productName.startswith(("RHEL Atomic Host", "Red Hat Enterprise Linux Atomic")):
-        hidden = False
+    if not productName.startswith(("RHEL Atomic Host", "Red Hat Enterprise Linux Atomic")):
+        hidden = True
 
     def setDefaultPartitioning(self, storage):
         autorequests = [PartSpec(mountpoint="/", fstype=storage.defaultFSType,


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


More information about the anaconda-patches mailing list