Project

General

Profile

Revision f6a9acbd

Added by Sebastian Gräßl over 5 years ago

Fixes #18518 - Add proper validation for container image

For now the image has only been validate via the result
of the search, but not enforced on the server side.

The model validation brings now proper feedback when
the form has been submitted to the server.

View differences:

app/models/docker_container_wizard_states/preliminary.rb
6 6
    belongs_to :wizard_state, :class_name => DockerContainerWizardState,
7 7
                              :foreign_key => :docker_container_wizard_state_id
8 8

  
9
    validates :compute_resource_id, :presence => true
9
    belongs_to :compute_resource, :required => true
10 10

  
11 11
    def used_location_ids
12 12
      Location.joins(:taxable_taxonomies).where(

Also available in: Unified diff