We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 780ca9c commit cb73bc1Copy full SHA for cb73bc1
1 file changed
agents/plugins/mk_podman.py
@@ -145,9 +145,9 @@ def query_containers(
145
) -> Union[JSONSection, Error]:
146
endpoint = "/v4.0.0/libpod/containers/json"
147
try:
148
- response = session.get(build_url_callable(socket_path, endpoint))
+ response = session.get(build_url_callable(socket_path, endpoint), params={"all": "true"})
149
response.raise_for_status()
150
- output = response.json()
+ output = [c for c in response.json() if not c.get("IsInfra", False)]
151
except Exception as e:
152
return Error(build_url_human_readable(socket_path, endpoint), str(e))
153
return JSONSection("containers", json.dumps(output))
0 commit comments