Fix semantic_version compared
Change-Id: I1e9566c9e5cc93c87f38286965677e5f07009ab2
This commit is contained in:
parent
aa98dd99d4
commit
4eb6d37a2a
|
@ -56,7 +56,7 @@ openstackdocstheme==1.20.0
|
|||
openstacksdk==0.17.0
|
||||
os-client-config==1.29.0
|
||||
os-service-types==1.2.0
|
||||
osc-lib==1.10.0
|
||||
osc-lib==1.14.0
|
||||
oslo.concurrency==3.26.0
|
||||
oslo.config==5.2.0
|
||||
oslo.context==2.20.0
|
||||
|
@ -89,7 +89,7 @@ python-keystoneclient==3.17.0
|
|||
python-mimeparse==1.6.0
|
||||
python-muranoclient==0.8.2
|
||||
python-neutronclient==6.7.0
|
||||
python-novaclient==10.1.0
|
||||
python-novaclient==15.0.0
|
||||
python-swiftclient==3.5.0
|
||||
pytz==2013.6
|
||||
PyYAML==3.12
|
||||
|
|
|
@ -21,7 +21,7 @@ def check_version(version):
|
|||
latest = get_latest_version()
|
||||
supported = semantic_version.Version(str(latest.major), partial=True)
|
||||
requested = semantic_version.Version.coerce(str(version))
|
||||
if supported != requested:
|
||||
if supported.major != requested.major:
|
||||
msg = 'Unsupported Dynamic UI format version: ' \
|
||||
'requested format version {0} is not compatible with the ' \
|
||||
'supported family {1}'
|
||||
|
|
Loading…
Reference in New Issue