summaryrefslogtreecommitdiffstats
path: root/cobbler/utils.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-05-08 15:02:06 -0400
committerJim Meyering <jim@meyering.net>2006-05-08 15:02:06 -0400
commitd4f71b4318fedf374844030095c6c8dd544f0e92 (patch)
treedd5bb88c2587a0ab4ea2638374ad4a71bbd868a9 /cobbler/utils.py
parent038a4383ccb6230f927960a34288c5cf6fbd3455 (diff)
downloadthird_party-cobbler-d4f71b4318fedf374844030095c6c8dd544f0e92.tar.gz
third_party-cobbler-d4f71b4318fedf374844030095c6c8dd544f0e92.tar.xz
third_party-cobbler-d4f71b4318fedf374844030095c6c8dd544f0e92.zip
Interim checkin while straightening out exceptions. The last_error bit reminded me of the
thing I hated most about Microsoft SDK/DDK programming (that being, last_error and inconsistant error handling), so it had to go.
Diffstat (limited to 'cobbler/utils.py')
-rw-r--r--cobbler/utils.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/cobbler/utils.py b/cobbler/utils.py
index c6cc019..3c82044 100644
--- a/cobbler/utils.py
+++ b/cobbler/utils.py
@@ -10,24 +10,8 @@ import socket
import glob
import subprocess
-import msg
-
_re_kernel = re.compile(r'vmlinuz-(\d+)\.(\d+)\.(\d+)-(.*)')
_re_initrd = re.compile(r'initrd-(\d+)\.(\d+)\.(\d+)-(.*).img')
-_utils_last_error = ""
-
-def last_error():
- """
- Return the last error message set with set_error
- """
- return _utils_last_error
-
-def set_error(strmsg):
- """
- Set the error message for the last failed operation
- """
- global _utils_last_error
- _utils_last_error = msg.m(strmsg)
def get_host_ip(ip):
"""