Commit 3f784d8f authored by Douwe Maan's avatar Douwe Maan

Don't consider a new inactive KubernetesService invalid

parent 391710f2
...@@ -240,7 +240,7 @@ class KubernetesService < DeploymentService ...@@ -240,7 +240,7 @@ class KubernetesService < DeploymentService
end end
def deprecation_validation def deprecation_validation
return if active_changed?(from: true, to: false) return if active_changed?(from: true, to: false) || (new_record? && !active?)
if deprecated? if deprecated?
errors[:base] << deprecation_message errors[:base] << deprecation_message
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment