Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid NoMethod error in TemplatePreloadedAttributesDecorator.new #106

Merged
merged 1 commit into from
Oct 13, 2017
Merged

Avoid NoMethod error in TemplatePreloadedAttributesDecorator.new #106

merged 1 commit into from
Oct 13, 2017

Conversation

jhernand
Copy link
Contributor

Currently the constructor of the TemplatePreloadedAttributesDecorator
class receives a parameter that defaults to 'nil', and that it is
actually never used. But the implementation of the constructor tries
call methods on it, NoMethodError. The net result is that refresh
fails. To avoid that this patch removes that unused parameter.

This patch addresses the following issue:

RHV Refresh worker throwing error in evm.log
https://bugzilla.redhat.com/1501162

Currently the constructor of the 'TemplatePreloadedAttributesDecorator'
class receives a parameter that defaults to 'nil', and that it is
actually never used. But the implementation of the constructor tries
call methods on it, 'NoMethodError'. The net result is that refresh
fails. To avoid that this patch removes that unused parameter.

This patch addresses the following issue:

  RHV Refresh worker throwing error in evm.log
  https://bugzilla.redhat.com/1501162

Signed-off-by: Juan Hernandez <[email protected]>
@jhernand
Copy link
Contributor Author

@borod108 please review.

@miq-bot
Copy link
Member

miq-bot commented Oct 13, 2017

Checked commit https://github.com/jhernand/manageiq-providers-ovirt/commit/2d0a6d3fad4dc6d1e245f64c5f1596a9c9d64cad with ruby 2.3.3, rubocop 0.47.1, and haml-lint 0.20.0
1 file checked, 0 offenses detected
Everything looks fine. 🏆

Copy link
Contributor

@borod108 borod108 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes this fix looks good to me. Perhaps it should be removed in get_attached_disks_from_futures as well, I think it is not used anymore since the async inventory PR was merged. I will look into it in a separate PR.

@borod108
Copy link
Contributor

@miq-bot assign @oourfali

@oourfali oourfali merged commit 91c3218 into ManageIQ:master Oct 13, 2017
@agrare agrare added this to the Sprint 71 Ending Oct 16, 2017 milestone Oct 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants