From 292f6673efb0814bacb5371fb2b092abb8a4199e Mon Sep 17 00:00:00 2001 From: Daniel Forsberg Date: Fri, 8 Jun 2018 12:12:24 +0300 Subject: [PATCH] changed mapping of packages_out_of_date to upgradable_package_count --- sat6Inventory.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sat6Inventory.py b/sat6Inventory.py index 0a231d7..66b519a 100755 --- a/sat6Inventory.py +++ b/sat6Inventory.py @@ -72,6 +72,7 @@ _sysdata_content_facet_attributes_mapping = { 'katello_agent_installed': 'katello_agent_installed', + 'packages_out_of_date': 'upgradable_package_count', } _sysdata_facts_mapping = { @@ -103,7 +104,6 @@ _sysdata_errata_mapping = { 'errata_out_of_date': 'total', - 'packages_out_of_date': 'total', } _facts_mapping = { @@ -496,7 +496,7 @@ def report_sysdata(): print "Error - %s" % (e) host_info = {} - fake = ['software_channel', 'configuration_channel', 'system_group', 'amount', 'entitlement', 'entitlements', 'organization', 'account_number', 'contract_number', 'start_date', 'end_date', 'hypervisor', 'virtual', 'compliant', 'ip_addresses', 'ipv6_addresses', 'num_virtual_guests', 'virtual_guests', 'activation_keys', 'derived_entitlement'] + fake = ['software_channel', 'configuration_channel', 'system_group', 'amount', 'entitlement', 'entitlements', 'organization', 'account_number', 'contract_number', 'start_date', 'end_date', 'hypervisor', 'virtual', 'compliant', 'ip_addresses', 'ipv6_addresses', 'num_virtual_guests', 'virtual_guests', 'activation_keys', 'derived_entitlement', 'packages_out_of_date'] for key in _sysdata_mapping.keys() + _sysdata_facts_mapping.keys() + _sysdata_virtual_host_mapping.keys() + _sysdata_errata_mapping.keys() + _facts_mapping.keys() + fake: host_info[key] = 'unknown'