diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-18 09:09:38 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-18 09:09:38 +0300 |
commit | ed9165c2abda1dca048a8d3cb8030d906c0bbb0c (patch) | |
tree | 226d7ad6b9abdc8d2534c3025b488ce9a754dee6 /app/services | |
parent | b4b9b3854eddd2a4829113ebfc1812c3a332a7d9 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/pod_logs/kubernetes_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/pod_logs/kubernetes_service.rb b/app/services/pod_logs/kubernetes_service.rb index 92ebb84b877..31e26912c73 100644 --- a/app/services/pod_logs/kubernetes_service.rb +++ b/app/services/pod_logs/kubernetes_service.rb @@ -43,7 +43,7 @@ module PodLogs end def check_container_name(result) - pod_details = result[:raw_pods].first { |p| p.metadata.name == result[:pod_name] } + pod_details = result[:raw_pods].find { |p| p.metadata.name == result[:pod_name] } containers = pod_details.spec.containers.map(&:name) # select first container if not specified |