diff --git a/app/models/host.rb b/app/models/host.rb index 9fc64457b2b..b419965b20e 100644 --- a/app/models/host.rb +++ b/app/models/host.rb @@ -177,6 +177,7 @@ class Host < ApplicationRecord before_create :make_smart after_save :process_events + supports :destroy supports :reset do unsupported_reason_add(:reset, _("The Host is not configured for IPMI")) if ipmi_address.blank? unsupported_reason_add(:reset, _("The Host has no IPMI credentials")) if authentication_type(:ipmi).nil? @@ -1728,10 +1729,6 @@ def normalized_state "unknown" end - def validate_destroy - {:available => true, :message => nil} - end - def self.display_name(number = 1) n_('Host', 'Hosts', number) end