Be more lenient on input version.
RPC is using r11 and 11 for kilo, same for upper branches. We should be more lenient to the version allowed, whether it's starting with a r or not, as long as the major version is the same number. Change-Id: I42053681fdc5e0b2c16060d8a51b4a620569f38c
This commit is contained in:
parent
850c763a19
commit
81713f8e60
@ -166,19 +166,19 @@ function discover_code_version {
|
||||
else
|
||||
source /etc/openstack-release
|
||||
case "${DISTRIB_RELEASE%%.*}" in
|
||||
'11')
|
||||
*11)
|
||||
export CODE_UPGRADE_FROM="KILO"
|
||||
notice "You seem to be running Kilo"
|
||||
;;
|
||||
'12')
|
||||
*12)
|
||||
export CODE_UPGRADE_FROM="LIBERTY"
|
||||
notice "You seem to be running Liberty"
|
||||
;;
|
||||
'13')
|
||||
*13)
|
||||
export CODE_UPGRADE_FROM="MITAKA"
|
||||
notice "You seem to be running Mitaka"
|
||||
;;
|
||||
'14')
|
||||
*14)
|
||||
export CODE_UPGRADE_FROM="NEWTON"
|
||||
notice "You seem to be running Newton"
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user