summaryrefslogtreecommitdiffstats
path: root/cobbler/utils.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-05-11 18:02:06 -0400
committerJim Meyering <jim@meyering.net>2006-05-11 18:02:06 -0400
commit8922f81cf954486cffbfc8562d04e7ef5e96083e (patch)
treebbc764b9f0c030e4cf89723918ab127e350ad9bd /cobbler/utils.py
parent85005517223359b0326045a7add495f77043fecc (diff)
downloadthird_party-cobbler-8922f81cf954486cffbfc8562d04e7ef5e96083e.tar.gz
third_party-cobbler-8922f81cf954486cffbfc8562d04e7ef5e96083e.tar.xz
third_party-cobbler-8922f81cf954486cffbfc8562d04e7ef5e96083e.zip
Remove stray characters from gethostbyip, which interfere with PXE IP encoding.
Diffstat (limited to 'cobbler/utils.py')
-rw-r--r--cobbler/utils.py2
1 files changed, 1 insertions, 1 deletions
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):
"""