[node-patches] Change in ovirt-node[master]: set hostname to localhost.localdomain if blank

jboggs at redhat.com jboggs at redhat.com
Mon Oct 29 13:57:27 UTC 2012


Joey Boggs has uploaded a new change for review.

Change subject: set hostname to localhost.localdomain if blank
......................................................................

set hostname to localhost.localdomain if blank

rhbz#870314

Signed-off-by: Joey Boggs <jboggs at redhat.com>
Change-Id: Iac2c0959806fb0b799addbac45a59a5a2937b6f7
---
M scripts/ovirt-config-setup.py
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/01/8901/1

diff --git a/scripts/ovirt-config-setup.py b/scripts/ovirt-config-setup.py
index c903c63..a0eaa16 100755
--- a/scripts/ovirt-config-setup.py
+++ b/scripts/ovirt-config-setup.py
@@ -1507,8 +1507,8 @@
         network = Network()
         if self.net_hostname.value() == "":
             network.remove_non_localhost()
-            augtool("set", "/files/etc/sysconfig/network/HOSTNAME", "")
-            system_closefds("hostname \"" + self.net_hostname.value() + "\"")
+            augtool("set", "/files/etc/sysconfig/network/HOSTNAME", "localhost.localdomain")
+            system_closefds("hostname localhost.localdomain")
         elif (self.net_hostname.value() != self.current_hostname and
                 is_valid_hostname(self.net_hostname.value())):
             network.remove_non_localhost()


--
To view, visit http://gerrit.ovirt.org/8901
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iac2c0959806fb0b799addbac45a59a5a2937b6f7
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Joey Boggs <jboggs at redhat.com>



More information about the node-patches mailing list