diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-11-06 11:03:58 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-11-06 11:04:04 +0100 |
commit | 001de85e7c6f86423aca0d245fdc83c57b374630 (patch) | |
tree | 872da8c51334d53ad60eba33c75263924c80c552 /app/models/clusters | |
parent | fe0292cfa7266ad5f936e103cdf005a00da4c233 (diff) | |
download | gitlab-ce-001de85e7c6f86423aca0d245fdc83c57b374630.tar.gz |
Return empty applications if not Kubernetes [ci skip]
Diffstat (limited to 'app/models/clusters')
-rw-r--r-- | app/models/clusters/cluster.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/clusters/cluster.rb b/app/models/clusters/cluster.rb index 7d0be3d3739..5b9bd6e548b 100644 --- a/app/models/clusters/cluster.rb +++ b/app/models/clusters/cluster.rb @@ -58,6 +58,8 @@ module Clusters end def applications + return [] unless kubernetes? + [ application_helm || build_application_helm ] |