Skip to content

Commit

Permalink
Merge "Closes-Bug: #1571509 - SM Upgrade failed because cassandra ver…
Browse files Browse the repository at this point in the history
…sion changed"
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Apr 20, 2016
2 parents 21c37e9 + 19effc4 commit 1326d28
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ database_dir=$1; shift
contrail_package_name=$1
cassandra_version=''
cassandra_version=`dpkg -s cassandra | grep Version | awk '{print $2}'`
if [ "$cassandra_version" == "2.1.9" ] || [ "$cassandra_version" == '' ]; then
version_check=`echo -e "$cassandra_version\n2.1.9" | sort -V | head -n1`
if [ "$version_check" == "2.1.9" ] || [ "$cassandra_version" == '' ]; then
# Don't do upgrade
exit
fi
Expand Down

0 comments on commit 1326d28

Please sign in to comment.