summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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):
"""