Skip to content

Commit

Permalink
VmScan transitions from before_scan -> start_scan
Browse files Browse the repository at this point in the history
Add missing state transition method `start_scan` which actually
initiates the scan.
  • Loading branch information
agrare committed Jan 12, 2021
1 parent 06494cc commit dc8130d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/models/vm_scan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ def before_scan
signal(:start_scan)
end

def start_scan
scanning
call_scan
end

def call_scan
_log.info("Enter")

Expand Down

0 comments on commit dc8130d

Please sign in to comment.