From b3c640de7ea4c9801c14000dd78209181edc7049 Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Wed, 14 Oct 2020 17:54:25 +0200 Subject: [PATCH] Fix "Wait for the ironic node to be inspected" task Variables to customise hardware inspection timeouts were introduced in change I2e45876f89121d66cf03b50824bd8258517b88cb. Unfortunately, the wait_inspected_timeout variable is turned into a string despite inspector_inspection_timeout being originally defined as an integer, causing the following error: Unexpected templating type error occurred on ({{ wait_inspected_timeout // wait_inspected_interval }}): unsupported operand type(s) for //: 'str' and 'int' Change-Id: Ie40a3eed7146e2e2d8b1c08860da395b35ed99d6 Story: 2007844 Task: 40135 --- ansible/overcloud-hardware-inspect.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/overcloud-hardware-inspect.yml b/ansible/overcloud-hardware-inspect.yml index aa6c22a8f..7cd0d8a0b 100644 --- a/ansible/overcloud-hardware-inspect.yml +++ b/ansible/overcloud-hardware-inspect.yml @@ -126,7 +126,7 @@ register: show_result # Wait until the node is no longer in one of the inspecting states. until: not show_result.stdout_lines[1:] | intersect(inspecting_states) - retries: "{{ wait_inspected_timeout // wait_inspected_interval }}" + retries: "{{ wait_inspected_timeout | int // wait_inspected_interval | int }}" delay: "{{ wait_inspected_interval }}" when: wait_inspected | bool changed_when: False