Project

General

Profile

« Previous | Next » 

Revision 630061d2

Added by Michael Moll almost 6 years ago

Fixes #19775 - Fix Layout/ExtraSpacing cop

View differences:

app/models/host/base.rb
alias_attribute :hostname, :name
validates :name, :presence => true, :uniqueness => true, :format => {:with => Net::Validations::HOST_REGEXP, :message => _(Net::Validations::HOST_REGEXP_ERR_MSG)}
validates :name, :presence => true, :uniqueness => true, :format => {:with => Net::Validations::HOST_REGEXP, :message => _(Net::Validations::HOST_REGEXP_ERR_MSG)}
validate :host_has_required_interfaces
validate :uniq_interfaces_identifiers
validate :build_managed_only

Also available in: Unified diff