ansible-lint
ansible-lint copied to clipboard
don't inject CWD parent into PATH
previously if own_location was set to "", then os.path.realpath("") resolves to CWD, and then if CWD/../ansible exists, CWD/.. was injected into PATH.
This doesn't seem desirable or necessary.
An alternate fix for my issue would be to check if parent / "ansible" is executable before adding parent to the PATH. LMK if you prefer that fix.