From b7d9f3cb1e71073b53699e8bf41ffe98617cba5a Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Thu, 28 May 2020 16:18:24 -0400 Subject: [PATCH] Add supports terminate feature --- .../providers/redhat/infra_manager/vm/operations.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/models/manageiq/providers/redhat/infra_manager/vm/operations.rb b/app/models/manageiq/providers/redhat/infra_manager/vm/operations.rb index 62c2a74de..c4143cb50 100644 --- a/app/models/manageiq/providers/redhat/infra_manager/vm/operations.rb +++ b/app/models/manageiq/providers/redhat/infra_manager/vm/operations.rb @@ -7,6 +7,12 @@ module ManageIQ::Providers::Redhat::InfraManager::Vm::Operations include_concern 'Relocation' include_concern 'Snapshot' + included do + supports :terminate do + unsupported_reason_add(:terminate, unsupported_reason(:control)) unless supports_control? + end + end + def raw_destroy with_provider_object(&:destroy) end