Skip to content

Commit

Permalink
Remove handover from shutdown_vm transition
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiendupont committed Oct 7, 2019
1 parent 0cb2310 commit cb7738c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion app/models/infra_conversion_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,6 @@ def shutdown_vm
end

update_migration_task_progress(:on_exit)
handover_to_automate
queue_signal(:transform_vm)
rescue StandardError => error
update_migration_task_progress(:on_error)
Expand Down
1 change: 0 additions & 1 deletion spec/models/infra_conversion_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,6 @@
expect(job).to receive(:update_migration_task_progress).once.ordered.with(:on_exit)
expect(job).to receive(:queue_signal).with(:transform_vm)
job.signal(:shutdown_vm)
expect(task.reload.options[:workflow_runner]).to eq('automate')
end

it 'sends shutdown request to VM if VM supports shutdown_guest' do
Expand Down

0 comments on commit cb7738c

Please sign in to comment.