Skip to content

Commit

Permalink
Storage Liberty provision fix
Browse files Browse the repository at this point in the history
Closes-Bug: #1556348
Issue in version check fixed.

Change-Id: I0c23460f5e119016bb16d8aac0fa030034fcd44d
  • Loading branch information
Jeya ganesh babu J committed Mar 12, 2016
1 parent 7fc64dc commit f16afc4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contrail_provisioning/storage/storagefs/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3485,15 +3485,15 @@ def find_cinder_version(self):
if pdist == 'centos':
os_cinder = local('rpm -q --queryformat="%{VERSION}" openstack-cinder',
capture=True)
if LooseVersion('$os_cinder') >= LooseVersion('2015.1.1'):
if LooseVersion(os_cinder) >= LooseVersion('2015.1.1'):
cinder_version = KILO_VERSION

if pdist == 'Ubuntu':
os_cinder = local('dpkg-query -W -f=\'${Version}\' cinder-api',
capture=True)
if LooseVersion('$os_cinder') >= LooseVersion('1:2015.1.1'):
if LooseVersion(os_cinder) >= LooseVersion('1:2015.1.1'):
cinder_version = KILO_VERSION
if LooseVersion('$os_cinder') >= LooseVersion('2:0.0.0'):
if LooseVersion(os_cinder) >= LooseVersion('2:0.0.0'):
cinder_version = LIBERTY_VERSION

if cinder_version >= KILO_VERSION:
Expand Down

0 comments on commit f16afc4

Please sign in to comment.