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

Don't use fetch, when you wish to fetch_path #12468

Merged
merged 1 commit into from Nov 7, 2016

Conversation

isimluk
Copy link
Member

@isimluk isimluk commented Nov 7, 2016

https://bugzilla.redhat.com/show_bug.cgi?id=1378154

Addressing:

FATAL -- : Error caught: [ArgumentError] wrong number of arguments (3 for 1..2)
app/models/vim_performance_analysis.rb:276:in `fetch'
app/models/vim_performance_analysis.rb:276:in `block in get_vm_needs'
app/models/vim_performance_analysis.rb:276:in `collect'
app/models/vim_performance_analysis.rb:276:in `get_vm_needs'
app/models/vim_performance_planning.rb:121:in `vm_metric_values'
app/controllers/miq_capacity_controller.rb:581:in `planning_get_vm_values'
app/controllers/miq_capacity_controller.rb:222:in `planning_option_changed'

Introduced in 88c28e0

@miq-bot add_label bug, metrics, euwe/yes, blocker
@miq-bot assign @gtanzillo

Addressing: (https://bugzilla.redhat.com/show_bug.cgi?id=1378154)

FATAL -- : Error caught: [ArgumentError] wrong number of arguments (3 for 1..2)
app/models/vim_performance_analysis.rb:276:in `fetch'
app/models/vim_performance_analysis.rb:276:in `block in get_vm_needs'
app/models/vim_performance_analysis.rb:276:in `collect'
app/models/vim_performance_analysis.rb:276:in `get_vm_needs'
app/models/vim_performance_planning.rb:121:in `vm_metric_values'
app/controllers/miq_capacity_controller.rb:581:in `planning_get_vm_values'
app/controllers/miq_capacity_controller.rb:222:in `planning_option_changed'

Introduced in 88c28e0

In retrospect, it we should strive to change only one thing per a commit.
@miq-bot
Copy link
Member

miq-bot commented Nov 7, 2016

Checked commit isimluk@ca27cd0 with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1
1 file checked, 1 offense detected

app/models/vim_performance_analysis.rb

@isimluk
Copy link
Member Author

isimluk commented Nov 7, 2016

@kbrock

@isimluk isimluk assigned kbrock and unassigned gtanzillo Nov 7, 2016
@kbrock kbrock merged commit e669263 into ManageIQ:master Nov 7, 2016
chessbyte pushed a commit that referenced this pull request Nov 7, 2016
@chessbyte
Copy link
Member

Euwe Backport details:

$ git log -1
commit de1ddea28cb09c26c412eaa1a6e17870095a2b91
Author: Keenan Brock <keenan@thebrocks.net>
Date:   Mon Nov 7 13:46:06 2016 -0500

    Merge pull request #12468 from isimluk/fetch_and_fetch_path

    Don't use fetch, when you wish to fetch_path
    (cherry picked from commit e6692639505e61107cf062b08c7c64b5c620383a)

    https://bugzilla.redhat.com/show_bug.cgi?id=1378154

@chessbyte chessbyte modified the milestone: Sprint 49 Ending Nov 14, 2016 Nov 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants