Skip to content

Commit bbb6b0c

Browse files
author
Adam Spiers
committed
Fix version comparison for SUSE Linux Enterprise 12
The version comparison introduced in I5152f2585c3d4d18853988d6290039d6b1713b99 was broken, because it tried to use bash's -lt operator for floating point comparison, but bash only supports integer arithmetic. So instead use devstack's vercmp() function. Change-Id: I8aac71c5bb6c2e82479d62831ea0672ba6a9a534
1 parent 8b9864d commit bbb6b0c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/neutron_plugins/ovs_base

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function _neutron_ovs_base_install_agent_packages {
6969
restart_service openvswitch
7070
sudo systemctl enable openvswitch
7171
elif is_suse; then
72-
if [[ $DISTRO == "sle12" ]] && [[ $os_RELEASE -lt 12.2 ]]; then
72+
if [[ $DISTRO == "sle12" ]] && vercmp "$os_RELEASE" "<" "12.2" ; then
7373
restart_service openvswitch-switch
7474
else
7575
# workaround for https://bugzilla.suse.com/show_bug.cgi?id=1085971

0 commit comments

Comments
 (0)