-
Notifications
You must be signed in to change notification settings - Fork 1k
template syntax error in FIB test caused by PR #1063 #1089
Description
Description
syntax error in template file ansible/roles/test/templates/fib.j2 caused by #1063
Steps to reproduce the issue:
1.run fib test and see error on simple-fib case about template:
<10.5.208.134> SSH: EXEC sshpass -d15 ssh -C -vvv -o ControlMaster=auto -o ControlPersist=120s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o User=root -o ConnectTimeout=10 -o ControlPath=/var/azure/.ansible/cp/ansible-ssh-%h-%p-%r -tt 10.5.208.134 'mkdir -p "$( echo
fatal: [et6448m-M0 -> 10.5.208.134]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_args": {"dest": "/root/fib_info.txt", "src": "roles/test/templates/fib.j2"}, "module_name": "template"}, "msg": "AnsibleError: ERROR! template error while templating string: Encountered unknown tag 'elif'. You probably made a nesting mistake. Jinja is expecting this tag, but currently looking for 'endfor' or 'else'. The innermost block that needs to be closed is 'for'."}
2.also even after fixing the syntax error (missing endfor tag) ptf test is failing with indexError exception