diff --git a/app/models/host.rb b/app/models/host.rb index cdaaf68c635..23cd3166715 100644 --- a/app/models/host.rb +++ b/app/models/host.rb @@ -314,6 +314,10 @@ def validate_unset_node_maintenance validate_unsupported("Maintenance mode is unavailable") 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