Skip to content

Commit

Permalink
Merge pull request ManageIQ#106 from jhernand/avoid_no_method_error_i…
Browse files Browse the repository at this point in the history
…n_template_preloaded_attributes_decorator

Avoid NoMethod error in TemplatePreloadedAttributesDecorator.new
  • Loading branch information
oourfali authored Oct 13, 2017
2 parents c74ef80 + 2d0a6d3 commit 91c3218
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,9 @@ def self.disk_from_attachment(connection, attachment, preloaded_disks)

class TemplatePreloadedAttributesDecorator < SimpleDelegator
attr_reader :disks
def initialize(template, connection, preloaded_disks = nil, future_disk_attachments = nil)
def initialize(template, connection, preloaded_disks = nil)
@obj = template
@disks = AttachedDisksFetcher.get_attached_disks_from_futures(template, connection, preloaded_disks, future_disk_attachments[template.id])
@disks = AttachedDisksFetcher.get_attached_disks_from_futures(template, connection, preloaded_disks, nil)
super(template)
end
end
Expand Down

0 comments on commit 91c3218

Please sign in to comment.