mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-03-26 21:43:02 +00:00
Run linters in a temp dir instead of an install
We can't run linters in an install because installs expand symlinks to regular files so the ansible-test code that detects symlinks can't work so it looks at docs for symlink aliases as if they were real. Change-Id: I0a5659a1f693261a21a5b29528f950b846205f2e
This commit is contained in:
committed by
Sagi Shnaidman
parent
7e027cb532
commit
6271268567
@@ -50,7 +50,7 @@ if sys.version_info >= (3,) and sys.version_info < (3, 4, 4):
|
||||
# Retrieve lines from read_data via a generator so that separate calls to
|
||||
# readline, read, and readlines are properly interleaved
|
||||
sep = b'\n' if isinstance(read_data, bytes) else '\n'
|
||||
data_as_list = [l + sep for l in read_data.split(sep)]
|
||||
data_as_list = [li + sep for li in read_data.split(sep)]
|
||||
|
||||
if data_as_list[-1] == sep:
|
||||
# If the last line ended in a newline, the list comprehension will have an
|
||||
|
||||
Reference in New Issue
Block a user