Fix function parsing the kernel version
Change-Id: Id56efb476144a18cd9eb7279bc0f602760a86173 Closes-Bug: #1300808
This commit is contained in:
parent
3cc5b4d0a3
commit
d4fdac7ae5
|
@ -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."))
|
||||
|
||||
|
|
Loading…
Reference in New Issue