ansible-collections/cisco.nxos

incorrect use of lookup module

ssbarnea opened this issue · 0 comments

Ansible-lint allowed me to spot two notable bugs in the code base: "{{ lookup('password', 'length=15 chars=ascii_letters') }}"

That is incorrect use of lookup plugin which states that first argument is the filename used to store password and that is mandatory. This example dumps password on disk with filename length=15 and obviously does not respect that limit.

There are two cases like this and they were not found.

The funny bit is that the linter does not get an error but I observed that these two weird files appeared after the run, something that never happened before.