Fix Quadlet container detection

- Remove compose-only filtering from check_image() function
- Restore v0.6.0 behavior of checking ALL containers
- Filtering now happens only during update phase, not check phase
- Fixes issue where Quadlet containers were skipped with 'no compose file'
This commit is contained in:
sudo-kraken 2025-09-16 12:22:56 +01:00
parent 6f1d63b47c
commit 89e26c512e
2 changed files with 18 additions and 9 deletions

View file

@ -537,14 +537,8 @@ check_image() {
fi
done
# Skipping non-compose containers unless option is set
ContLabels=$(podman inspect "$i" --format '{{json .Config.Labels}}')
ContPath=$($jqbin -r '."com.docker.compose.project.working_dir"' <<< "$ContLabels")
[[ "$ContPath" == "null" ]] && ContPath=""
if [[ -z "$ContPath" ]] && [[ "$DRunUp" == false ]]; then
printf "%s\n" "NoUpdates !$i - not checked, no compose file"
return
fi
# Check ALL containers - original v0.6.0 behavior
# Filtering happens during update, not during check
local NoUpdates GotUpdates GotErrors
ImageId=$(podman inspect "$i" --format='{{.Image}}')