Skip to content

Commit

Permalink
Set current hostname when hostname name is vaild on Text UI
Browse files Browse the repository at this point in the history
  • Loading branch information
DustMerlin committed Jan 22, 2025
1 parent 71597aa commit aa60bf6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyanaconda/ui/tui/spokes/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ def apply(self):
(valid, error) = network.is_valid_hostname(self.hostname, local=True)
if not self.hostname or valid:
self._network_module.Hostname = self.hostname
self._network_module.SetCurrentHostname(self.hostname)
else:
self.errors.append(_("Host name is not valid: %s") % error)
self.hostname = self._network_module.Hostname
Expand Down

0 comments on commit aa60bf6

Please sign in to comment.