summaryrefslogtreecommitdiff
path: root/app/models/clusters
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-11-06 20:29:13 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2017-11-06 20:29:13 +0100
commit9c76c44805effc7acb7d3cbd7ff4bd132cbbf100 (patch)
tree586d5aa53624647e5129681bbf747383a325fcde /app/models/clusters
parent02f99feec25491c07777682b20f74f3b0b2b074d (diff)
downloadgitlab-ce-9c76c44805effc7acb7d3cbd7ff4bd132cbbf100.tar.gz
Fix small error [ci skip]
Diffstat (limited to 'app/models/clusters')
-rw-r--r--app/models/clusters/applications/helm.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/clusters/applications/helm.rb b/app/models/clusters/applications/helm.rb
index 9bc5c026645..c203beb4915 100644
--- a/app/models/clusters/applications/helm.rb
+++ b/app/models/clusters/applications/helm.rb
@@ -18,7 +18,7 @@ module Clusters
end
def set_initial_status
- self.status = 0 unless cluster.platform_kubernetes_active?
+ self.status = 0 unless cluster&.platform_kubernetes_active?
end
def name