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 c79c3b0 commit b7d9f3c
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::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
Expand Down

0 comments on commit b7d9f3c

Please sign in to comment.