mirror of
https://github.com/ansibleguy/infra_apache.git
synced 2026-10-06 00:41:24 +02:00
minor fixes
This commit is contained in:
@@ -46,6 +46,9 @@ class FilterModule(object):
|
||||
@staticmethod
|
||||
def ensure_list(data: (str, list)) -> list:
|
||||
# if user supplied a string instead of a list => convert it to match our expectations
|
||||
if data is None:
|
||||
return []
|
||||
|
||||
if isinstance(data, list):
|
||||
return data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user