Skip to content

Commit

Permalink
Set default :ext_options in Chargeback::ReportOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
isimluk committed Oct 24, 2016
1 parent 814718d commit f068bd8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions app/models/chargeback.rb
Expand Up @@ -12,8 +12,6 @@ def self.build_results_for_report_chargeback(options)

cb = new

options[:ext_options] ||= {}

base_rollup = MetricRollup.includes(
:resource => [:hardware, :tenant, :tags, :vim_performance_states, :custom_attributes],
:parent_host => :tags,
Expand Down
1 change: 1 addition & 0 deletions app/models/chargeback/report_options.rb
Expand Up @@ -23,6 +23,7 @@ def initialize(*)
super
self.interval ||= 'daily'
self.end_interval_offset ||= 0
self.ext_options ||= {}
end

def tz
Expand Down

0 comments on commit f068bd8

Please sign in to comment.