Skip to content

Commit

Permalink
Merge pull request #12468 from isimluk/fetch_and_fetch_path
Browse files Browse the repository at this point in the history
Don't use fetch, when you wish to fetch_path
(cherry picked from commit e669263)

https://bugzilla.redhat.com/show_bug.cgi?id=1378154
  • Loading branch information
kbrock authored and chessbyte committed Nov 7, 2016
1 parent 5846cd5 commit de1ddea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/vim_performance_analysis.rb
Expand Up @@ -273,7 +273,7 @@ def get_vm_needs
options = @options

if VimPerformanceAnalysis.needs_perf_data?(options[:vm_options])
perf_cols = [:cpu, :vcpus, :memory, :storage].collect { |t| options.fetch(:vm_options, t, :metric) }.compact
perf_cols = [:cpu, :vcpus, :memory, :storage].collect { |t| options.fetch_path(:vm_options, t, :metric) }.compact
end

vm_perf = VimPerformanceAnalysis.get_daily_perf(@vm, options[:range], options[:ext_options], perf_cols)
Expand Down

0 comments on commit de1ddea

Please sign in to comment.