Skip to content

Commit

Permalink
fix: correct fact name to insights_id (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
kgaikwad authored Feb 21, 2024
1 parent 66e92f1 commit abbc32e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/processor/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_download_report_without_url():


def test_has_canonical_facts_true():
host = {'insights_client_id': '123'}
host = {'insights_id': '123'}
result = has_canonical_facts(host)
assert result is True

Expand Down
2 changes: 1 addition & 1 deletion yuptoo/processor/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def print_transformed_info(request_obj, host_id, transformed_obj):


def has_canonical_facts(host):
CANONICAL_FACTS = ['insights_client_id', 'bios_uuid', 'ip_addresses', 'mac_addresses',
CANONICAL_FACTS = ['insights_id', 'bios_uuid', 'ip_addresses', 'mac_addresses',
'vm_uuid', 'etc_machine_id', 'subscription_manager_id']
for fact in CANONICAL_FACTS:
if host.get(fact):
Expand Down

0 comments on commit abbc32e

Please sign in to comment.