Skip to content

Commit

Permalink
Tightened up default state machine
Browse files Browse the repository at this point in the history
  • Loading branch information
chessbyte committed Dec 12, 2019
1 parent 6b5f7cf commit 3a06cd9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/models/vm_scan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ def load_transitions
:before_scan => {'checking_policy' => 'before_scan'},
:start_scan => {'before_scan' => 'scanning'},
:after_scan => {'scanning' => 'after_scan'},
:synchronize => {'after_scan' => 'synchronize'},
:finish => {'*' => 'finished'},
:abort_job => {'*' => 'aborting'},
:cancel => {'*' => 'canceling'},
:error => {'*' => '*'},
:synchronize => {'after_scan' => 'synchronizing'},
:finish => {'synchronizing' => 'finished'},
:data => {'scanning' => 'scanning',
'synchronizing' => 'synchronizing',
'finished' => 'finished'},
:abort_job => {'*' => 'aborting'},
:cancel => {'*' => 'canceling'},
:error => {'*' => '*'},
}
end

Expand Down

0 comments on commit 3a06cd9

Please sign in to comment.