summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2017-01-09 14:54:43 -0800
committerMatt Clay <matt@mystile.com>2017-01-09 16:01:43 -0800
commite431117a12860d1c5fd9bd65cc07fba2ac95489f (patch)
tree2d6c7e8d99e5b0022d9e48abf512a0decfe52b6c
parent59353257e8db79e76c2d4fbd28ece8dd89656434 (diff)
downloadansible-temp-post-2.2.1-staging.tar.gz
Fix group_by test to work with jinja2 >= 2.9.temp-post-2.2.1-staging
(cherry picked from commit cc3d131f503b34ae972dbed94a0b5fde567aab92)
-rw-r--r--test/integration/test_group_by.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/test_group_by.yml b/test/integration/test_group_by.yml
index 87d1809e8d..3c299aa728 100644
--- a/test/integration/test_group_by.yml
+++ b/test/integration/test_group_by.yml
@@ -25,10 +25,10 @@
group_by: key={{ genus }}
- name: group by first three letters of genus with key in quotes
- group_by: key="{{ genus | truncate(3, true, '') }}"
+ group_by: key="{{ genus[:3] }}"
- name: group by first two letters of genus with key not in quotes
- group_by: key={{ genus | truncate(2, true, '') }}
+ group_by: key={{ genus[:2] }}
- name: group by genus in uppercase using complex args
group_by: { key: "{{ genus | upper() }}" }