Skip to content

Commit

Permalink
Remove print statement
Browse files Browse the repository at this point in the history
  • Loading branch information
kholdaway committed Jan 11, 2018
1 parent a5e22d8 commit eebc0af
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions quipucords/fingerprinter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def process_fact_collection(sender, instance, **kwargs):
raw_facts = read_raw_facts(instance.id)

# Invoke ENGINE to create fingerprints from facts
fingerprints_list = FINGERPRINT_ENGINE.process_sources(raw_facts)
fingerprints_list = FINGERPRINT_ENGINE.process_sources(instance, raw_facts)
fingerprints_list = remove_duplicate_systems(
fingerprints_list, ['subscription_manager_id', 'bios_uuid'])

Expand Down Expand Up @@ -86,9 +86,11 @@ class Engine():
# pylint: disable=no-self-use,too-many-branches,too-many-statements
# pylint: disable=too-few-public-methods

def process_sources(self, raw_facts):
def process_sources(self, fact_collection, raw_facts):
"""Process facts and convert to fingerprints.
:param fact_collection: FactCollection associated with
raw facts
:param raw_facts: Collected raw facts for all sources
:returns: list of fingerprints for all systems (all scans)
"""
Expand All @@ -99,7 +101,8 @@ def process_sources(self, raw_facts):
source['source_id'],
source['facts'])
all_fingerprints = all_fingerprints + source_fingerprints
print('number of fingerprints: %d' % len(all_fingerprints))
logger.debug('FactCollection %d produced %d fingerprints',
fact_collection.id, len(all_fingerprints))
return all_fingerprints

def _process_facts(self, fact_collection_id, source_id, facts):
Expand Down

0 comments on commit eebc0af

Please sign in to comment.