Don't consider a new inactive KubernetesService invalid

This commit is contained in:
Douwe Maan 2018-07-05 11:41:29 +02:00
parent 391710f29d
commit 3f784d8f34
No known key found for this signature in database
GPG key ID: 5976703F65143D36

View file

@ -240,7 +240,7 @@ class KubernetesService < DeploymentService
end
def deprecation_validation
return if active_changed?(from: true, to: false)
return if active_changed?(from: true, to: false) || (new_record? && !active?)
if deprecated?
errors[:base] << deprecation_message