Skip to content

Commit

Permalink
remove unneeded interval check
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrock committed Nov 20, 2019
1 parent 1df7df4 commit 0ea4676
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/models/manageiq/providers/base_manager/metrics_capture.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,6 @@ def perf_capture_queue(target, interval_name, options = {})
priority = options[:priority] || Metric::Capture.interval_priority(interval_name)
task_id = options[:task_id]

raise ArgumentError, "invalid interval_name '#{interval_name}'" unless Metric::Capture::VALID_CAPTURE_INTERVALS.include?(interval_name)
raise ArgumentError, "target does not have an ExtManagementSystem" if ems.nil?

# cb is the task used to group cluster realtime metrics
cb = {:class_name => target.class.name, :instance_id => target.id, :method_name => :perf_capture_callback, :args => [[task_id]]} if task_id && interval_name == 'realtime'
items = queue_items_for_interval(target, interval_name, start_time, end_time)
Expand Down

0 comments on commit 0ea4676

Please sign in to comment.