plugins.filter.docker package¶
Submodules¶
plugins.filter.docker.network_noop module¶
Filter docker_network_noop: classify docker network connect/disconnect errors.
- failed_when: >
result.rc != 0 and not (result.stderr | docker_network_noop(‘connect’))
Returns True when the stderr of a failed docker network connect|disconnect
only reports an idempotent no-op: the endpoint already is in the desired state
(‘connect’) or the network/container to detach from is absent (‘disconnect’).
Any other daemon error (permissions, dead daemon, active endpoints) stays False
so the caller’s failed_when still trips.
- plugins.filter.docker.network_noop.docker_network_noop(stderr: str | None, operation: str) bool¶
plugins.filter.docker.service_enabled module¶
- class plugins.filter.docker.service_enabled.FilterModule¶
Bases:
objectCustom filter to safely check if a docker service is enabled for an application_id
- filters()¶
- static is_docker_service_enabled(applications, application_id, service_name)¶
Returns True if applications[application_id].services[service_name].enabled is truthy, otherwise returns False (even if intermediate keys are missing).
Per the materialised payload exposes services under the bare
serviceskey (nocompose.servicesenvelope).