Skip to content

Commit

Permalink
Merge pull request ManageIQ#14395 from zeari/delegate_custom_attribut…
Browse files Browse the repository at this point in the history
…es_to_images

Delegate custom attributes to images in ChargebackContainerImage
  • Loading branch information
isimluk authored Mar 20, 2017
2 parents 46d5afc + b580851 commit 6d5d478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/chargeback.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def initialize(options, consumption)
self.start_date, self.end_date, self.display_range = options.report_step_range(consumption.timestamp)
self.interval_name = options.interval
self.chargeback_rates = ''
self.entity = consumption.resource
self.entity ||= consumption.resource
end

def calculate_costs(consumption, rates)
Expand Down

0 comments on commit 6d5d478

Please sign in to comment.