node-exporter-textfile-collector-scripts
node-exporter-textfile-collector-scripts copied to clipboard
apt_info.py - pending_upgrades always empty
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.