Improve the condition for SRIOV config file presence check
This change https://review.opendev.org/c/starlingx/ansible-playbooks/+/845612 missed a check that if previous_mode is defined. Without this, k8s upgrade fails from 1.21.8 to 1.22.5. Test Plan (On CentOS): On AIO-DX PASS: 'system kube-upgrade-networking' successful when upgrading k8s 1.21.8 -> 1.22.5. Closes-Bug: 1979129 Signed-off-by: Kaustubh Dhokte <kaustubh.dhokte@windriver.com> Change-Id: I4313f646bcf9a208c9c49ee5676fa731a025b4cf
This commit is contained in:
parent
6a605fad08
commit
eb17492b21
|
@ -102,7 +102,8 @@
|
|||
failed_when: false
|
||||
when: sriov_config_file_check_output.rc == 0
|
||||
|
||||
when: previous_mode == 'restore'
|
||||
when: previous_mode is defined and
|
||||
previous_mode == 'restore'
|
||||
|
||||
- name: Create SRIOV Networking config file
|
||||
template:
|
||||
|
|
Loading…
Reference in New Issue