diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2006-05-11 18:02:06 -0400 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-05-11 18:02:06 -0400 |
commit | 8922f81cf954486cffbfc8562d04e7ef5e96083e (patch) | |
tree | bbc764b9f0c030e4cf89723918ab127e350ad9bd /cobbler/utils.py | |
parent | 85005517223359b0326045a7add495f77043fecc (diff) | |
download | third_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.py | 2 |
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): """ |