[QUEENS ONLY] Fix layered upgrade workaround mechanism.

The regex was only matching ovs layered package with ".0" in the last
number end.

This fixes it.

Queens only because in master and below we use
tripleo-ansible/tripleo-ovs-upgrade module and it has the correct
regex.

Change-Id: I9120a7bc3b0afaf07be4ea90f65e9bb30c534fb8
Closes-Bug: #1897949
This commit is contained in:
Sofer Athlan-Guyot 2020-09-30 19:26:14 +02:00
parent 49f1396d60
commit 4958c2ef75
1 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ outputs:
- name: Get current OpenvSwitch package name
register: ovs_pkg_out
shell:
rpm -qa | awk -F- '/^(openvswitch[0-9]+\.[0-9]+-[0-9]+\.[0-9]+\.[-0]+-|openvswitch-2)/{print $1}'
rpm -qa | awk -F- '/^(openvswitch[0-9]+\.[0-9]+-[0-9]+\.[0-9]+\.[0-9]+-|openvswitch-2)/{print $1}'
when:
- step|int == 2
- name: Don't update if not present
@ -331,7 +331,7 @@ outputs:
- name: Get current OpenvSwitch package name
register: ovs_pkg_out
shell:
rpm -qa | awk -F- '/^(openvswitch[0-9]+\.[0-9]+-[0-9]+\.[0-9]+\.[-0]+-|openvswitch-2)/{print $1}'
rpm -qa | awk -F- '/^(openvswitch[0-9]+\.[0-9]+-[0-9]+\.[0-9]+\.[0-9]+-|openvswitch-2)/{print $1}'
when:
- step|int == 2 or step|int == 3
- name: Don't update if not present