mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Fixed a small buglet, if using with_items with yum and so on, only optimize the package list if the package list is all strings
This commit is contained in:
@@ -654,4 +654,9 @@ def get_diff(diff):
|
||||
except UnicodeDecodeError:
|
||||
return ">> the files are different, but the diff library cannot compare unicode strings"
|
||||
|
||||
|
||||
def is_list_of_strings(items):
|
||||
for x in items:
|
||||
if not isinstance(x, basestring):
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user