neil / rpms / anaconda

Forked from rpms/anaconda a year ago
Clone
DistroBaker 73cad9
From 89fb55d22f64eda26d18c735dfd59ee99b5191c2 Mon Sep 17 00:00:00 2001
DistroBaker 73cad9
From: Vendula Poncova <vponcova@redhat.com>
DistroBaker 73cad9
Date: Tue, 23 Feb 2021 15:50:50 +0100
DistroBaker 73cad9
Subject: [PATCH] The network spoke should be visible in live spins (#1932961)
DistroBaker 73cad9
DistroBaker 73cad9
It should be always possible to configure the hostname for the target system
DistroBaker 73cad9
in the graphical network spoke, unless the spoke was specifically disabled in
DistroBaker 73cad9
the Anaconda configuration files.
DistroBaker 73cad9
DistroBaker 73cad9
This regression was caused by the commit 6b80b7b.
DistroBaker 73cad9
DistroBaker 73cad9
Resolves: rhbz#1932961
DistroBaker 73cad9
---
DistroBaker 73cad9
 pyanaconda/ui/gui/spokes/network.py | 3 ++-
DistroBaker 73cad9
 1 file changed, 2 insertions(+), 1 deletion(-)
DistroBaker 73cad9
DistroBaker 73cad9
diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py
DistroBaker 73cad9
index 1ef468a084..3cae5b4489 100644
DistroBaker 73cad9
--- a/pyanaconda/ui/gui/spokes/network.py
DistroBaker 73cad9
+++ b/pyanaconda/ui/gui/spokes/network.py
DistroBaker 73cad9
@@ -1472,7 +1472,8 @@ class NetworkSpoke(FirstbootSpokeMixIn, NormalSpoke):
DistroBaker 73cad9
         if not FirstbootSpokeMixIn.should_run(environment, data):
DistroBaker 73cad9
             return False
DistroBaker 73cad9
 
DistroBaker 73cad9
-        return conf.system.can_configure_network
DistroBaker 73cad9
+        # Always allow to configure the hostname for the target system.
DistroBaker 73cad9
+        return True
DistroBaker 73cad9
 
DistroBaker 73cad9
     def __init__(self, *args, **kwargs):
DistroBaker 73cad9
         NormalSpoke.__init__(self, *args, **kwargs)
DistroBaker 73cad9
-- 
DistroBaker 73cad9
2.26.2
DistroBaker 73cad9