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 15:26:52 -0800
commit941552d10702bf344b2213105d131b64f36fac1f (patch)
treeb87b6f8edee640c5066190c20cd44e05aa524f54
parentd8c9b8d347db9032b4d7486a21c1719c92e2c130 (diff)
downloadansible-941552d10702bf344b2213105d131b64f36fac1f.tar.gz
Fix group_by test to work with jinja2 >= 2.9.
(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() }}" }