From 8922f81cf954486cffbfc8562d04e7ef5e96083e Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Thu, 11 May 2006 18:02:06 -0400 Subject: Remove stray characters from gethostbyip, which interfere with PXE IP encoding. --- cobbler/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cobbler/utils.py b/cobbler/utils.py index 144deb3..0b96002 100644 --- a/cobbler/utils.py +++ b/cobbler/utils.py @@ -28,7 +28,7 @@ def get_host_ip(ip): handle = subprocess.Popen("/usr/bin/gethostip %s" % ip, shell=True, stdout=subprocess.PIPE) out = handle.stdout results = out.read() - return results.split(" ")[-1] + return results.split(" ")[-1][0:8] def find_system_identifier(strdata): """ -- cgit