Project

General

Profile

Bug #3128

EC2 images listing when creating a new host broken in 1.3 RC1

Added by Alejandro Falcon about 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Urgent
Category:
Compute resources
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Upgraded to 1.3 RC1 and found that this commit breaks EC2 images listing when creating a new host or editing.

https://github.com/theforeman/foreman/commit/76e5dd41bd575f7e6df7c7422660510216a9b964

Just changed back the following in app/controllers/images_controller.rb and it started working again.

from this:

@images = @compute_resource.images.search_for(params[:search], :order => params[:order]).paginate :page => params[:page]

to this:

respond_to do |format|
format.html { @images = values.paginate :page => params[:page] }
format.json { render :json => values }
end


Related issues

Has duplicate Foreman - Bug #3153: Failing to create ec2 VPC instancesDuplicate2013-09-26

Associated revisions

Revision 11a8ab90 (diff)
Added by Greg Sutcliffe about 9 years ago

Fixes #3128 - add json format back to images_controller

Revision ad23da91 (diff)
Added by Greg Sutcliffe about 9 years ago

Fixes #3128 - add json format back to images_controller

(cherry picked from commit 11a8ab90f30fe691bf4a8ea4b2b1b3e770820061)

History

#1 Updated by Dominic Cleal about 9 years ago

  • Priority changed from Immediate to Urgent

#2 Updated by Greg Sutcliffe about 9 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Greg Sutcliffe

#3 Updated by Dominic Cleal about 9 years ago

  • Has duplicate Bug #3153: Failing to create ec2 VPC instances added

#4 Updated by Greg Sutcliffe about 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#5 Updated by Lukas Zapletal about 9 years ago

  • Related to Tracker #3112: [TRACKER] Issues to be released in 1.3 RC or final added

#6 Updated by Lukas Zapletal about 9 years ago

  • Related to deleted (Tracker #3112: [TRACKER] Issues to be released in 1.3 RC or final)

Also available in: Atom PDF