Skip to content

Commit fdc2b86

Browse files
authored
Merge pull request #274 from agrare/move_streaming_refresh_enabled
Move streaming_refresh_enabled method
2 parents 220e784 + 703ad32 commit fdc2b86

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/models/manageiq/providers/kubernetes/container_manager_mixin.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ module ManageIQ::Providers::Kubernetes::ContainerManagerMixin
1818
supports :streaming_refresh do
1919
unsupported_reason_add(:streaming_refresh, "Streaming refresh not enabled") unless streaming_refresh_enabled?
2020
end
21+
22+
def streaming_refresh_enabled?
23+
Settings.ems_refresh[emstype.to_sym]&.streaming_refresh
24+
end
2125
end
2226

2327
def monitoring_manager_needed?
@@ -30,10 +34,6 @@ def supports_metrics?
3034
endpoints.where(:role => METRICS_ROLES).exists?
3135
end
3236

33-
def streaming_refresh_enabled?
34-
Settings.ems_refresh[emstype.to_sym]&.streaming_refresh
35-
end
36-
3737
module ClassMethods
3838
def raw_api_endpoint(hostname, port, path = '')
3939
URI::HTTPS.build(:host => hostname, :port => port.presence.try(:to_i), :path => path)

0 commit comments

Comments
 (0)