Skip to content

Commit

Permalink
Merge pull request #516 from kbrock/unsupported_supports
Browse files Browse the repository at this point in the history
drop unsupported_reason_add
  • Loading branch information
agrare committed Feb 26, 2024
2 parents 18261e1 + 89fee0d commit 1dbd298
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/manageiq/providers/kubernetes/container_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class ManageIQ::Providers::Kubernetes::ContainerManager < ManageIQ::Providers::C

supports :create
supports :streaming_refresh do
unsupported_reason_add(:streaming_refresh, _("Streaming refresh not enabled")) unless streaming_refresh_enabled?
_("Streaming refresh not enabled") unless streaming_refresh_enabled?
end

supports :label_mapping
Expand All @@ -29,7 +29,7 @@ def monitoring_manager_needed?
end

supports :metrics do
unsupported_reason_add(:metrics, _("No metrics endpoint has been added")) unless metrics_endpoint_exists?
_("No metrics endpoint has been added") unless metrics_endpoint_exists?
end

def metrics_endpoint_exists?
Expand Down

0 comments on commit 1dbd298

Please sign in to comment.