Skip to content

Commit dbdd9b7

Browse files
authored
Remove Jinja2 template delimeters from assert (#1155)
This clears an error with newer Ansible ansible core where conditionals with template tags are marked as unsafe and fail to evaluate
1 parent 5adf855 commit dbdd9b7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/integration/targets/v3.5/tasks/netbox_tenant_group.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
- test_five['diff']['before']['state'] == "absent"
9191
- test_five['diff']['after']['state'] == "present"
9292
- test_five['tenant_group']['name'] == "Child Test Tenant Group"
93-
- test_five['tenant_group']['parent'] == {{ test_four.tenant_group.id }}
93+
- test_five['tenant_group']['parent'] == test_four.tenant_group.id
9494
- test_five['msg'] == "tenant_group Child Test Tenant Group created"
9595

9696
- name: "6 - Test child tenant group deletion"

tests/integration/targets/v3.6/tasks/netbox_tenant_group.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
- test_five['diff']['before']['state'] == "absent"
9191
- test_five['diff']['after']['state'] == "present"
9292
- test_five['tenant_group']['name'] == "Child Test Tenant Group"
93-
- test_five['tenant_group']['parent'] == {{ test_four.tenant_group.id }}
93+
- test_five['tenant_group']['parent'] == test_four.tenant_group.id
9494
- test_five['msg'] == "tenant_group Child Test Tenant Group created"
9595

9696
- name: "6 - Test child tenant group deletion"

tests/integration/targets/v3.7/tasks/netbox_tenant_group.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
- test_five['diff']['before']['state'] == "absent"
9191
- test_five['diff']['after']['state'] == "present"
9292
- test_five['tenant_group']['name'] == "Child Test Tenant Group"
93-
- test_five['tenant_group']['parent'] == {{ test_four.tenant_group.id }}
93+
- test_five['tenant_group']['parent'] == test_four.tenant_group.id
9494
- test_five['msg'] == "tenant_group Child Test Tenant Group created"
9595

9696
- name: "6 - Test child tenant group deletion"

0 commit comments

Comments
 (0)