Skip to content

Commit

Permalink
Using LooseVersion when comparing the release
Browse files Browse the repository at this point in the history
Closes-Bug: 1554813

Change-Id: Ic75cfe8234b94573627384f6bf66263b0fd4a74a
  • Loading branch information
cijohnson committed Mar 9, 2016
1 parent 2b5cbda commit cc59592
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fabfile/tasks/upgrade.py
Expand Up @@ -203,8 +203,8 @@ def upgrade_orchestrator(from_rel, pkg):
if get_orchestrator() is 'openstack':
execute('upgrade_openstack', from_rel, pkg)
if (get_openstack_internal_vip() and
float(from_rel) <= 2.2 and
get_release() >= 2.2):
LooseVersion(from_rel) <= LooseVersion('2.20') and
LooseVersion(get_release()) >= LooseVersion('2.20')):
execute('setup_cmon_schema')
execute('setup_cluster_monitors')
execute('setup_cmon_param_zkonupgrade')
Expand Down

0 comments on commit cc59592

Please sign in to comment.