fixed ipv6 compatibility check
This commit is contained in:
@@ -431,9 +431,9 @@ def do_openstack_upgrade(configs):
|
||||
|
||||
|
||||
def setup_ipv6():
|
||||
ubuntu_rel = float(lsb_release()['DISTRIB_RELEASE'])
|
||||
if ubuntu_rel < 'trusty':
|
||||
raise Exception("IPv6 is not supported for Ubuntu "
|
||||
ubuntu_rel = lsb_release()['DISTRIB_CODENAME'].lower()
|
||||
if ubuntu_rel < "trusty":
|
||||
raise Exception("IPv6 is not supported in the charms for Ubuntu "
|
||||
"versions less than Trusty 14.04")
|
||||
|
||||
# NOTE(xianghui): Need to install haproxy(1.5.3) from trusty-backports
|
||||
|
||||
Reference in New Issue
Block a user