fixed ipv6 compatibility check

This commit is contained in:
Edward Hope-Morley
2014-09-30 14:24:32 +01:00
parent 8f17ac2059
commit c8f530fb12

View File

@@ -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