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
1 changed files with 1 additions and 1 deletions

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