node-exporter-textfile-collector-scripts icon indicating copy to clipboard operation
node-exporter-textfile-collector-scripts copied to clipboard

apt_info.py - pending_upgrades always empty

Open RomainMou opened this issue 1 year ago • 0 comments

Hi,

Since https://github.com/prometheus-community/node-exporter-textfile-collector-scripts/pull/181/, the script apt_info.py never returns any apt_upgrades_pending. Instead, all the packages are counted in the apt_upgrades_held.

I think this is because the cache.upgrade(True) call marks the packages that could be upgraded, and without it, no package has the marked_upgrade boolean set to true.

RomainMou avatar Dec 13 '23 19:12 RomainMou