Project

General

Profile

Revision 466cd5ba

Added by Daniel Lobato Garcia over 8 years ago

Fixes #7912 - Wizard path error and tests

View differences:

app/controllers/containers_controller.rb
1 1
class ContainersController < ::ApplicationController
2 2
  def index
3 3
    @container_resources = allowed_resources.select { |cr| cr.provider == 'Docker' }
4
    if @container_resources.empty?
5
      warning('You need a Compute Resource of type Docker to start managing containers')
6
      redirect_to new_compute_resource_path
7
    end
4 8
  # This should only rescue Fog::Errors, but Fog returns all kinds of errors...
5 9
  rescue
6 10
    process_error
......
8 12

  
9 13
  def new
10 14
    @container = Container.create
11
    redirect_to container_steps_path(:container_id => @container.id)
15
    redirect_to container_step_path(:container_id => @container.id, :id => :preliminary)
12 16
  end
13 17

  
14 18
  private

Also available in: Unified diff