Skip to content

Commit

Permalink
Merge pull request ManageIQ#13394 from isimluk/perf_capture_enabled
Browse files Browse the repository at this point in the history
Simplify ems.perf_capture_enabled
  • Loading branch information
blomquisg authored Jan 30, 2017
2 parents 2b9a6c3 + 684450b commit 4240b7c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/models/ext_management_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -516,9 +516,7 @@ def perf_rollup_parents(interval_name = nil)

def perf_capture_enabled?
return @perf_capture_enabled unless @perf_capture_enabled.nil?
return @perf_capture_enabled = true if ems_clusters.any?(&:perf_capture_enabled?)
return @perf_capture_enabled = true if hosts.any?(&:perf_capture_enabled?)
@perf_capture_enabled = false
@perf_capture_enabled = ems_clusters.any?(&:perf_capture_enabled?) || host.any?(&:perf_capture_enabled?)
end
alias_method :perf_capture_enabled, :perf_capture_enabled?
Vmdb::Deprecation.deprecate_methods(self, :perf_capture_enabled => :perf_capture_enabled?)
Expand Down

0 comments on commit 4240b7c

Please sign in to comment.