Project

General

Profile

Revision ab3290b1

Added by Swapnil Abnave over 4 years ago

Fixes #20429 - mandate URL for docker compute-resource

View differences:

app/models/foreman_docker/docker.rb
2 2

  
3 3
module ForemanDocker
4 4
  class Docker < ::ComputeResource
5
    validates :url, :format => { :with => URI.regexp }
5
    validates :url, :format => { :with => URI.regexp }, :presence => true
6 6
    validates :email, :format => { :with => /.+@.+\..+/i }, :allow_blank => true
7 7

  
8 8
    def self.model_name

Also available in: Unified diff