From a987cd9693c2d1ca16d590ff34dbd3443ae57529 Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Wed, 22 Jan 2020 16:34:28 -0500 Subject: [PATCH] Add back some missing state transitions to VmScan Some of the state transitions on error conditions were removed during the prior VmScan refactoring, specifically scan_retry and abort_retry. --- app/models/vm_scan.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/vm_scan.rb b/app/models/vm_scan.rb index 72176f541b1..d0200efab44 100644 --- a/app/models/vm_scan.rb +++ b/app/models/vm_scan.rb @@ -26,6 +26,8 @@ def load_transitions :data => {'scanning' => 'scanning', 'synchronizing' => 'synchronizing', 'finished' => 'finished'}, + :scan_retry => {'scanning' => 'scanning'}, + :abort_retry => {'scanning' => 'scanning'}, :abort_job => {'*' => 'aborting'}, :cancel => {'*' => 'canceling'}, :error => {'*' => '*'},