Fix function parsing the kernel version

Change-Id: Id56efb476144a18cd9eb7279bc0f602760a86173
Closes-Bug: #1300808
This commit is contained in:
Simon Pasquier 2014-04-01 15:55:55 +02:00
parent 3cc5b4d0a3
commit d4fdac7ae5
1 changed files with 2 additions and 1 deletions

View File

@ -484,7 +484,8 @@ def get_installed_kernel_version():
try:
cmd = utils.execute(args)
for line in cmd.split('\n'):
return str(re.findall("\d+\.\d+\.\d+", line))
ver = re.findall("\d+\.\d+\.\d+", line)
return ver[0]
except Exception:
LOG.exception(_("Unable to retrieve installed Linux kernel version."))