mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-07 11:13:10 +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):
|
||||
try:
|
||||
shuffle(list(mylist))
|
||||
mylist = list(mylist)
|
||||
shuffle(mylist)
|
||||
except:
|
||||
pass
|
||||
return mylist
|
||||
|
||||
Reference in New Issue
Block a user