mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
unchained list coercion as it removed the randomization
This commit is contained in:
@@ -237,7 +237,8 @@ def rand(environment, end, start=None, step=None):
|
|||||||
|
|
||||||
def randomize_list(mylist):
|
def randomize_list(mylist):
|
||||||
try:
|
try:
|
||||||
shuffle(list(mylist))
|
mylist = list(mylist)
|
||||||
|
shuffle(mylist)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
return mylist
|
return mylist
|
||||||
|
|||||||
Reference in New Issue
Block a user