fix distro behavior for rhel 5
This commit is contained in:
parent
dca0c8aa06
commit
2e587154eb
1 changed files with 4 additions and 1 deletions
|
|
@ -2654,7 +2654,10 @@ class OzImageTask(BaseTaskHandler):
|
||||||
image on.
|
image on.
|
||||||
"""
|
"""
|
||||||
if distro.startswith('RHEL'):
|
if distro.startswith('RHEL'):
|
||||||
return distro.split('.')
|
major, minor = distro.split('.')
|
||||||
|
if major == 'RHEL-5':
|
||||||
|
minor = 'U' + minor
|
||||||
|
return major, minor
|
||||||
elif distro.startswith('Fedora'):
|
elif distro.startswith('Fedora'):
|
||||||
return distro.split('-')
|
return distro.split('-')
|
||||||
elif distro.startswith('CentOS'):
|
elif distro.startswith('CentOS'):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue