Skip to content

template syntax error in FIB test caused by PR #1063 #1089

@avi-milner

Description

@avi-milner

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 $HOME/.ansible/tmp/ansible-tmp-1567427321.27-60214546390966 )" &amp;&amp; echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1567427321.27-60214546390966 )"'
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions