summaryrefslogtreecommitdiffstats
path: root/pyanaconda/vnc.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyanaconda/vnc.py')
-rw-r--r--pyanaconda/vnc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyanaconda/vnc.py b/pyanaconda/vnc.py
index a7ccc7643..b38f2333c 100644
--- a/pyanaconda/vnc.py
+++ b/pyanaconda/vnc.py
@@ -105,7 +105,7 @@ class VncServer:
except Exception as e:
log.debug("Exception caught trying to get host name of %s: %s" %
(ipstr, e))
- self.name = network.getDefaultHostname(self.anaconda)
+ self.name = network.getHostname()
else:
if len(hinfo) == 3:
self.name = hinfo[0]