diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2006-10-11 11:52:04 -0400 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-10-11 11:52:04 -0400 |
commit | 3bbe407dd8024263662cf80a308f221c516b8f7b (patch) | |
tree | bf46b1048409122cfdbddeb750593bccc47b4b70 /cobbler | |
parent | 8cfe48db88343ffb315a584f62a81969bd5a790a (diff) | |
download | third_party-cobbler-3bbe407dd8024263662cf80a308f221c516b8f7b.tar.gz third_party-cobbler-3bbe407dd8024263662cf80a308f221c516b8f7b.tar.xz third_party-cobbler-3bbe407dd8024263662cf80a308f221c516b8f7b.zip |
Remove subprocess reference
Diffstat (limited to 'cobbler')
-rw-r--r-- | cobbler/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cobbler/utils.py b/cobbler/utils.py index 4df6661..84b8686 100644 --- a/cobbler/utils.py +++ b/cobbler/utils.py @@ -16,7 +16,7 @@ import os import re import socket import glob -import subprocess +import sub_process _re_kernel = re.compile(r'vmlinuz(.*)') _re_initrd = re.compile(r'initrd(.*).img') @@ -25,7 +25,7 @@ def get_host_ip(ip): """ Return the IP encoding needed for the TFTP boot tree. """ - handle = subprocess.Popen("/usr/bin/gethostip %s" % ip, shell=True, stdout=subprocess.PIPE) + handle = sub_process.Popen("/usr/bin/gethostip %s" % ip, shell=True, stdout=sub_process.PIPE) out = handle.stdout results = out.read() return results.split(" ")[-1][0:8] |