Skip to content

Commit

Permalink
remove validate_reset that just returns false
Browse files Browse the repository at this point in the history
by the time this was added, the buttons looked at supports.
there was a bug in HostFeatureButtonWithDisable
and instead of having that button support both availability mixin and supports feature mixin
this method was added.

this commit only works because we're changing the buttons to only call supports?

refs:

remove validate_reset: ManageIQ#11625
added back: ManageIQ#12324
(guessing we should have changed the button instead)
changes to availability mixin in generic button: manageiq-ui-classic a85cfb1
  • Loading branch information
kbrock committed May 12, 2022
1 parent cfa68f1 commit e7552d8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/models/host.rb
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,6 @@ def validate_check_compliance_queue
{:available => true, :message => nil}
end

def validate_reset
validate_unsupported("Reset is unavailable")
end

def validate_unsupported(message_prefix)
{:available => false, :message => "#{message_prefix} is not available for #{self.class.model_suffix} Host."}
end
Expand Down

0 comments on commit e7552d8

Please sign in to comment.