[PATCH] Do not try to set None as hostname (#1002737)
Vratislav Podzimek
vpodzime at redhat.com
Thu Sep 5 10:25:22 UTC 2013
This might happen in the Initial Setup in some special cases.
Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
pyanaconda/ui/gui/spokes/network.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py
index f7c1275..97c2174 100644
--- a/pyanaconda/ui/gui/spokes/network.py
+++ b/pyanaconda/ui/gui/spokes/network.py
@@ -1084,6 +1084,8 @@ class NetworkControlBox(object):
@hostname.setter
def hostname(self, value):
+ if not value:
+ return
self.entry_hostname.set_text(value)
--
1.7.11.7
More information about the anaconda-patches
mailing list