Skip to content

Commit

Permalink
Add supports terminate feature
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed May 28, 2020
1 parent e5c3ada commit 8195b5a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ module ManageIQ::Providers::Openstack::CloudManager::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
raise "VM has no #{ui_lookup(:table => "ext_management_systems")}, unable to destroy VM" unless ext_management_system
with_notification(:vm_destroy,
Expand Down

0 comments on commit 8195b5a

Please sign in to comment.