mirror of
https://github.com/ansibleguy/infra_apache.git
synced 2026-10-18 01:30:41 +02:00
lint fixes
This commit is contained in:
@@ -418,6 +418,7 @@ disable=raw-checker-failed,
|
||||
use-symbolic-message-instead,
|
||||
C0114, C0115, C0116, # docstrings
|
||||
C0103, # var naming
|
||||
R0205, # filter_plugins 'FilterModule'
|
||||
|
||||
# Enable the message, report, category or checker with the given id(s). You can
|
||||
# either give multiple identifier separated by comma (,) or put this option
|
||||
|
||||
@@ -46,8 +46,7 @@ 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 type(data) == list:
|
||||
if isinstance(data, list):
|
||||
return data
|
||||
|
||||
else:
|
||||
return [data]
|
||||
return [data]
|
||||
|
||||
Reference in New Issue
Block a user