summaryrefslogtreecommitdiff
path: root/app/models/clusters
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-11-03 03:37:32 +0900
committerShinya Maeda <shinya@gitlab.com>2017-11-03 03:37:32 +0900
commit3602c0b9874c6b93e6cf55e1cb0238951784604d (patch)
tree06c954ed572fdeba505f742ae2e878655288b54d /app/models/clusters
parentb129f06733c7994fb81cef4d0bae6d6611647a83 (diff)
downloadgitlab-ce-3602c0b9874c6b93e6cf55e1cb0238951784604d.tar.gz
Fix some tests
Diffstat (limited to 'app/models/clusters')
-rw-r--r--app/models/clusters/platforms/kubernetes.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/clusters/platforms/kubernetes.rb b/app/models/clusters/platforms/kubernetes.rb
index 8b00f1dac0b..a33534da8bb 100644
--- a/app/models/clusters/platforms/kubernetes.rb
+++ b/app/models/clusters/platforms/kubernetes.rb
@@ -58,7 +58,7 @@ module Clusters
def update_kubernetes_integration!
raise 'Kubernetes service already configured' unless manages_kubernetes_service?
- ensure_kubernetes_service.update!(
+ ensure_kubernetes_service&.update!(
active: enabled?,
api_url: api_url,
namespace: namespace,
@@ -83,7 +83,7 @@ module Clusters
def destroy_kubernetes_integration!
return unless manages_kubernetes_service?
- kubernetes_service.destroy!
+ kubernetes_service&.destroy!
end
def kubernetes_service