From b592d7653db69860ebda5873a600098384e49818 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 8 Oct 2014 11:54:22 -0400 Subject: [PATCH] unchained list coercion as it removed the randomization --- lib/ansible/runner/filter_plugins/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/runner/filter_plugins/core.py b/lib/ansible/runner/filter_plugins/core.py index 7d4c57155a..129d984bcb 100644 --- a/lib/ansible/runner/filter_plugins/core.py +++ b/lib/ansible/runner/filter_plugins/core.py @@ -237,7 +237,8 @@ def rand(environment, end, start=None, step=None): def randomize_list(mylist): try: - shuffle(list(mylist)) + mylist = list(mylist) + shuffle(mylist) except: pass return mylist