Skip to content

Commit

Permalink
Update the discover scan progress
Browse files Browse the repository at this point in the history
  • Loading branch information
kholdaway committed Nov 2, 2017
1 parent 43198f1 commit 689af94
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions quipucords/scanner/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,14 @@ def discovery(self):
cred = hc_serializer.data
connected, remaining = connect(remaining, cred, connection_port,
forks=forks)

# Update the scan counts
if self.scanjob.systems_count is None:
self.scanjob.systems_count = len(connected) + len(remaining)
self.scanjob.systems_scanned = 0
self.scanjob.systems_scanned += len(connected)
self.scanjob.save()

if remaining == []:
break

Expand Down

0 comments on commit 689af94

Please sign in to comment.