summaryrefslogtreecommitdiffstats
path: root/cobbler/utils.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-09-18 12:19:12 -0400
committerJim Meyering <jim@meyering.net>2006-09-18 12:19:12 -0400
commit471c4f926158223a250bacc13d62e219136f51eb (patch)
tree368a62b254460494fdb91fac68a18459a1dcb6ef /cobbler/utils.py
parent4c84daf2fb99ba8860c02a1898c99ebab3dcfdc8 (diff)
downloadthird_party-cobbler-471c4f926158223a250bacc13d62e219136f51eb.tar.gz
third_party-cobbler-471c4f926158223a250bacc13d62e219136f51eb.tar.xz
third_party-cobbler-471c4f926158223a250bacc13d62e219136f51eb.zip
- Since /mnt/redhat images for Xen do not contain kernel and initrd version and build numbers, ease the cobbler restriction that all images must contain version and build numbers.
Diffstat (limited to 'cobbler/utils.py')
-rw-r--r--cobbler/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cobbler/utils.py b/cobbler/utils.py
index 88c6c03..d59e37b 100644
--- a/cobbler/utils.py
+++ b/cobbler/utils.py
@@ -18,8 +18,8 @@ import socket
import glob
import subprocess
-_re_kernel = re.compile(r'vmlinuz-(\d+)\.(\d+)\.(\d+)-(.*)')
-_re_initrd = re.compile(r'initrd-(\d+)\.(\d+)\.(\d+)-(.*).img')
+_re_kernel = re.compile(r'vmlinuz(.*)')
+_re_initrd = re.compile(r'initrd(.*).img')
def get_host_ip(ip):
"""