ci: resolve the Collection's own roles in lint and run ansible-test sanity before a push #126
@@ -34,11 +34,11 @@ def parsed(stdout):
|
||||
"""{key: value} of the stub's output; `link` may repeat, so it is collected in a list."""
|
||||
out = {"link": []}
|
||||
for line in stdout.splitlines():
|
||||
key, _, value = line.partition("=")
|
||||
if key == "link":
|
||||
out["link"].append(value)
|
||||
parts = line.partition("=")
|
||||
if parts[0] == "link":
|
||||
out["link"].append(parts[2])
|
||||
else:
|
||||
out[key] = value
|
||||
out[parts[0]] = parts[2]
|
||||
return out
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user