Add metrics without updates for known types

Closes #13
This commit is contained in:
Tomas Edwardsson 2014-06-21 16:51:15 +00:00
parent 03f7389842
commit cbcaa14997
1 changed files with 5 additions and 0 deletions

View File

@ -45,6 +45,11 @@ def main():
for pkg in pkg_updates[update_type]:
p.add_long_output(" %s" % pkg)
for m in known_types:
m = m.lower()
if not p.get_metric(m):
p.add_metric(m, 0)
p.check_all_metrics()
p.exit()