diff options
Diffstat (limited to 'cobbler/utils.py')
-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 0b96002..88c6c03 100644 --- a/cobbler/utils.py +++ b/cobbler/utils.py @@ -37,7 +37,7 @@ def find_system_identifier(strdata): pxelinux doesn't work in hostnames """ if is_mac(strdata): - return strdata + return strdata.upper() if is_ip(strdata): return strdata return resolve_ip(strdata) @@ -59,7 +59,7 @@ def is_mac(strdata): Return whether the argument is a mac address. """ # needs testcase - if re.search(r'[A-F0-9]{2}:[A-F0-9]{2}:[A-F0-9]{2}:[A-F0-9]{2}:[A-F:0-9]{2}:[A-F:0-9]{2}',strdata): + if re.search(r'[A-F0-9]{2}:[A-F0-9]{2}:[A-F0-9]{2}:[A-F0-9]{2}:[A-F:0-9]{2}:[A-F:0-9]{2}',strdata, re.IGNORECASE): return True return False |