diff --git a/app/models/manageiq/providers/base_manager/metrics_capture.rb b/app/models/manageiq/providers/base_manager/metrics_capture.rb index 5b171426aed..314c5c91196 100644 --- a/app/models/manageiq/providers/base_manager/metrics_capture.rb +++ b/app/models/manageiq/providers/base_manager/metrics_capture.rb @@ -160,9 +160,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)