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
This commit is contained in:
parent
dd7ff7da48
commit
b3c640de7e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user