Revision abd8f1d1
Added by Daniel Lobato Garcia over 9 years ago
app/models/nic/interface.rb | ||
---|---|---|
module Nic
|
||
class Interface < Base
|
||
|
||
attr_accessible :ip
|
||
|
||
validates :ip, :uniqueness => true, :format => {:with => Net::Validations::IP_REGEXP}, :allow_blank => true
|
||
... | ... | |
errors.add(:name, _("must not include periods")) if ( host && host.managed? && managed? && shortname.include?(".") && SETTINGS[:unattended] )
|
||
self.name = Net::Validations.normalize_hostname(name) if self.name.present?
|
||
end
|
||
|
||
end
|
||
end
|
||
|
Also available in: Unified diff
Refs #3809 - Remove cops for empty lines