Skip to content

Instantly share code, notes, and snippets.

@metabsd
Created September 9, 2020 01:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save metabsd/8ee0cb958757f46639694faa60acab57 to your computer and use it in GitHub Desktop.
Save metabsd/8ee0cb958757f46639694faa60acab57 to your computer and use it in GitHub Desktop.
ERROR: Found 2 pylint issue(s) which need to be resolved:
ERROR: plugins/modules/my_module.py:239:25: unnecessary-lambda: Lambda may not be necessary
ERROR: tests/sanity/ignore-2.9.txt:1:1: ansible-test: Ignoring 'W0108' on 'plugins/modules/my_module.py' is unnecessary
ignore-2.9.txt
plugins/modules/my_module.py pylint:W0108
The line in question
portSets is a list
I need to create external_ports as a list of list.
external_ports = []
list(map(lambda i: external_ports.extend(i), portSets))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment