dataset/seed/nginx-reverse-proxy/funcs/nginx.py

14 lines
253 B
Python
Raw Permalink Normal View History

2022-08-18 10:19:43 +02:00
from risotto.utils import multi_function as _multi_function
2022-03-08 19:42:28 +01:00
2022-08-18 10:19:43 +02:00
@_multi_function
def nginx_list(lst):
ret = []
for l in lst:
ret.extend(l)
ret = list(set(ret))
2023-02-14 14:24:16 +01:00
if None in ret:
ret.remove(None)
2022-08-18 10:19:43 +02:00
ret.sort()
return ret